On Mon, Jun 8, 2015 at 5:39 PM, Junio C Hamano gits...@pobox.com wrote:
Will Palmer wmpal...@gmail.com writes:
diff --git a/t/t1511-rev-parse-caret.sh b/t/t1511-rev-parse-caret.sh
index e0fe102..8a5983f 100755
--- a/t/t1511-rev-parse-caret.sh
+++ b/t/t1511-rev-parse-caret.sh
@@ -19,13 +19,17
Will Palmer wmpal...@gmail.com writes:
- * For future extension, ':/!' is reserved. If you want to match a message
- * beginning with a '!', you have to repeat the exclamation mark.
+ * For negative-matching, prefix the pattern-part with '!-', like: ':/!-WIP'.
+ *
+ * For a literal '!'
To name a commit, you can now say
$ git rev-parse HEAD^{/!-foo}
and it will return the hash of the first commit reachable from HEAD,
whose commit message does not contain foo. This is the opposite of the
existing rev^{/pattern} syntax.
The specific use-case this is intended for is to
3 matches
Mail list logo