Re: [PATCH v2 2/2] object name: introduce '^{/!-negative pattern}' notation

2015-06-09 Thread Will Palmer
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

Re: [PATCH v2 2/2] object name: introduce '^{/!-negative pattern}' notation

2015-06-08 Thread Junio C Hamano
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 '!'

[PATCH v2 2/2] object name: introduce '^{/!-negative pattern}' notation

2015-06-05 Thread Will Palmer
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