Re: [PATCH] rebase -i: give rerere a chance
From: David Kastrup <hidden>
Date: 2016-06-15 22:43:54
Johannes Schindelin [off-list ref] writes:
Hi, On Wed, 28 Nov 2007, Junio C Hamano wrote:quoted
Johannes Schindelin [off-list ref] writes:quoted
@@ -166,13 +167,13 @@ pick_one_preserving_merges () { msg="$(git cat-file commit $sha1 | sed -e '1,/^$/d')" # No point in merging the first parent, that's HEAD new_parents=${new_parents# $first_parent} - # NEEDSWORK: give rerere a chance if ! GIT_AUTHOR_NAME="$GIT_AUTHOR_NAME" \ GIT_AUTHOR_EMAIL="$GIT_AUTHOR_EMAIL" \ GIT_AUTHOR_DATE="$GIT_AUTHOR_DATE" \ output git merge $STRATEGY -m "$msg" \ $new_parents then + git rerereThis comment is not about this rerere change, but output is a shell function and I vaguely recall we had a discussion on "VAR=VAL cmd" form of single-shot export not working for them as expected...Hmm. What do you propose? In the long run, I _want_ to have rebase as a builtin, which would solve this problem, probably. But in the short run?
Well, something like if ! ( GIT_xxx=A; export GIT_xxx; output git merge ... ) should likely work. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum