Code

Make builtin-branch.c handle the git config file
authorLars Hjemli <hjemli@gmail.com>
Fri, 6 Apr 2007 12:13:00 +0000 (14:13 +0200)
committerJunio C Hamano <junkio@cox.net>
Fri, 6 Apr 2007 23:54:39 +0000 (16:54 -0700)
commit19eba1515a7d3b0dac6d4ee73492d978c3c2149b
tree467d51b8c8154cf6b8fcbbad40001f42ea833cb8
parentd26f9fef470443dfb0d09c08341634208f4fb6f7
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>
builtin-branch.c
refs.c