shithub: git9

Download patch

ref: 4859c3f71ff0650ea39d3f545f76d1f4ab16e1ba
parent: 522488b641afb2c01be37a1ace0ff10ff12219ce
author: Ori Bernstein <[email protected]>
date: Sun Aug 23 18:30:04 EDT 2020

git/log: handle '-c' flag correctly

we were clobbering $base instead of
setting $branch. instead, set the
right variable.

--- a/log
+++ b/log
@@ -4,12 +4,12 @@
 
 gitup
 
-flagfmt='e:expr expression, c:base commit, s:short'; args='file ...'
+flagfmt='e:expr expression, c:branch commit, s:short'; args='file ...'
 eval `''{aux/getflags $*} || exec aux/usage
 
-if(~ $#base 0)
-	base=/mnt/git/object/
-branch=`{git/branch}
+base=/mnt/git/object/
+if(~ $#branch 0)
+	branch=`{git/branch}
 if(~ $#expr 0)
 	commits=`{git/query $branch}
 if not