ref: ee1a32c4292f76e457751d0063182a824ff3d8de
parent: bd4c1bbccb31efc87d32b6d63ebc904b21ffee6a
author: Ori Bernstein <[email protected]>
date: Mon Feb 10 00:34:03 EST 2020
show parent commits in preamble.
--- a/commit
+++ b/commit
@@ -42,8 +42,11 @@
fn editmsg{
echo '# Author: '$"name' <'$"email'>' >> $msgfile.tmp
- echo '#' $nl'# ' ^ `$nl{git/walk -fAMR $files} >> $msgfile.tmp
echo '#' >> $msgfile.tmp
+ for(p in $parents)
+ echo '# parent: '$p >> $msgfile.tmp
+ echo '# ' ^ `$nl{git/walk -fAMR $files} >> $msgfile.tmp
+ echo '#' >> $msgfile.tmp
echo '# Commit message:' >> $msgfile.tmp
giteditor=`{git/conf core.editor}
if(~ $#editor 0)
@@ -62,7 +65,7 @@
if not if(~ $initial true)
parents=()
if not
- parents=$branch
+ parents=`{git/query $branch}
}
fn commit{