Skip to contentSkip to conversation

guilt-rebase: Make fast-forward work

PATCH Applied Eric Lesh 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore

Eric Lesh

author
#0 lore raw

PATCH 1/1 guilt-rebase: Make fast-forward work

Merges created with --no-commit and a blank commit message didn't update the branch's HEAD in a fast-forward merge. Rebasing didn't actually do anything in that case.

Also quote the log message when displaying the new HEAD.

---
 guilt-rebase |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
guilt-rebase +2 -2
index cc8dcf6..f7de813 100755
@@ -49,11 +49,11 @@ cp "$applied" "$rebase_dir/status"
 
 echo "First, poping all patches..."
 pop_all_patches
-git-merge --no-commit "" HEAD $upstream > /dev/null 2> /dev/null
+git-merge --no-commit $upstream > /dev/null 2> /dev/null
 
 echo ""
 log=`git-log -1 --pretty=oneline`
-echo "HEAD is now at `echo $log | cut -c 1-7`... `echo $log | cut -c 41-`"
+echo "HEAD is now at `echo $log | cut -c 1-7`... `echo "$log" | cut -c 41-`"
 
 #
 # For each previously applied patch:
Signature · 1 line
1.5.2
Applied
#1 lore raw
Quoted 5 lines · Eric Lesh

Merges created with --no-commit and a blank commit message didn't update the branch's HEAD in a fast-forward merge. Rebasing didn't actually do anything in that case.

Also quote the log message when displaying the new HEAD.

Applied. Thanks.

Josef 'Jeff' Sipek.

Signature · 3 lines
You measure democracy by the freedom it gives its dissidents, not the
freedom it gives its assimilated conformists.
		- Abbie Hoffman