chiark / gitweb /
git-debrebase: Provide anchor subcommand
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 25 Mar 2018 16:10:49 +0000 (17:10 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jun 2018 15:07:00 +0000 (16:07 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
git-debrebase
git-debrebase.1.pod

index 4667e8b1b8b408b8245e634f597adca7e78a12f3..f2997a3af65fe59b6c52a9efe68f060b5d7acfa9 100755 (executable)
@@ -1224,6 +1224,12 @@ sub cmd_record_ffq_prev () {
     }
 }
 
+sub cmd_anchor () {
+    badusage "no arguments allowed" if @ARGV;
+    my ($anchor, $bw) = keycommits +(git_rev_parse 'HEAD'), 0,0;
+    print "$bw\n" or die $!;
+}
+
 sub cmd_breakwater () {
     badusage "no arguments allowed" if @ARGV;
     my ($anchor, $bw) = keycommits +(git_rev_parse 'HEAD'), 0,0;
index ba603ba577091b6a5ac84b1637fd2c0a8fd9fb3c..ed33b79c1f8d59cb7c3b08983515ed177da7212e 100644 (file)
@@ -201,6 +201,10 @@ Prints the breakwater tip commitid.
 If your HEAD branch is not fully laundered,
 prints the tip of the so-far-laundered breakwater.
 
+=item git-debrebase anchor
+
+Prints the breakwater anchor commitid.
+
 =item git-debrebase analyse
 
 Walks the history of the current branch,