author | Lars Hjemli <hjemli@gmail.com> | |
Fri, 6 Apr 2007 12:13:00 +0000 (14:13 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 6 Apr 2007 23:54:39 +0000 (16:54 -0700) | ||
commit | 19eba1515a7d3b0dac6d4ee73492d978c3c2149b | |
tree | 467d51b8c8154cf6b8fcbbad40001f42ea833cb8 | tree | snapshot |
parent | d26f9fef470443dfb0d09c08341634208f4fb6f7 | commit | diff |
Make builtin-branch.c handle the git config file
This moves the knowledge about .git/config usage out of refs.c and into
builtin-branch.c instead, which allows git-branch to update HEAD to point
at the moved branch before attempting to update the config file. It also
allows git-branch to exit with an error code if updating the config file
should fail.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This moves the knowledge about .git/config usage out of refs.c and into
builtin-branch.c instead, which allows git-branch to update HEAD to point
at the moved branch before attempting to update the config file. It also
allows git-branch to exit with an error code if updating the config file
should fail.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-branch.c | diff | blob | history | |
refs.c | diff | blob | history |