From 6b38a402e97274037982a5346ca4168cc8ee026c Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Tue, 21 Jun 2005 14:04:13 -0700 Subject: Clean up different special *HEAD handling We codify the following different heads (in addition to the main "HEAD", which points to the current branch, of course): - FETCH_HEAD Populated by "git fetch" - ORIG_HEAD The old HEAD before a "git pull/resolve" (successful or not) - LAST_MERGE The HEAD we're currently merging in "git pull/resolve" - MERGE_HEAD The previous head of a unresolved "git pull", which gets committed by a "git commit" after manually resolving the result We used to have "MERGE_HEAD" be populated directly by the fetch, and we removed ORIG_HEAD and LAST_MERGE too aggressively. --- git-pull-script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-pull-script') diff --git a/git-pull-script b/git-pull-script index dbef56c70b..90ee0f322d 100755 --- a/git-pull-script +++ b/git-pull-script @@ -17,5 +17,5 @@ git-fetch-script "$merge_repo" "$merge_head" || exit 1 git-resolve-script \ "$(cat "$GIT_DIR"/HEAD)" \ - "$(cat "$GIT_DIR"/MERGE_HEAD)" \ + "$(cat "$GIT_DIR"/FETCH_HEAD)" \ "$merge_name" -- cgit v1.2.3