shithub: git9

Download patch

ref: f8bf36dc99975ea582975096522f6acece3e4bf6
parent: b460630cc75d4c144248726bb93d7e421bb5c5bc
author: Ori Bernstein <[email protected]>
date: Sat Oct 12 02:12:08 EDT 2019

Update docs for query.

--- a/git.1
+++ b/git.1
@@ -115,8 +115,9 @@
 .PP
 .B git/query
 [
-.B -p
+.B -pc
 ]
+.I query...
 .PP
 .B git/walk
 [
@@ -329,7 +330,10 @@
 option, instead of printing the commit hashes, the full
 path to their
 .B git/fs
-path is printed.
+path is printed. With the
+.I -c
+option, the query must resolve to two commits. The blobs
+that have changed in the commits are printed.
 
 .PP
 .B Git/walk
--- a/query.c
+++ b/query.c
@@ -75,7 +75,7 @@
 void
 usage(void)
 {
-	fprint(2, "usage: %s [-p]\n", argv0);
+	fprint(2, "usage: %s [-pc] query...\n", argv0);
 	exits("usage");
 }