diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-07-24 14:50:49 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-07-24 14:50:49 -0700 |
commit | 53cae9e0f8d793c7e180f79b86ea2745c59f9bee (patch) | |
tree | d3f05ea6ec5784f6788a68076f7b326fa38df768 /Documentation | |
parent | 18a86f32ab91a0be390508c0b3cdc374a00822a0 (diff) | |
parent | 6b3351e799f733561b98241f6ee88a9a72c13400 (diff) | |
download | git-53cae9e0f8d793c7e180f79b86ea2745c59f9bee.tar.gz |
Merge branch 'wc/find-commit-with-pattern-on-detached-head'
"git rev-parse ':/substring'" did not consider the history leading
only to HEAD when looking for a commit with the given substring,
when the HEAD is detached. This has been fixed.
* wc/find-commit-with-pattern-on-detached-head:
sha1-name.c: for ":/", find detached HEAD commits
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/revisions.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/revisions.txt b/Documentation/revisions.txt index 7d1bd44094..72daa20e76 100644 --- a/Documentation/revisions.txt +++ b/Documentation/revisions.txt @@ -184,7 +184,8 @@ existing tag object. A colon, followed by a slash, followed by a text, names a commit whose commit message matches the specified regular expression. This name returns the youngest matching commit which is - reachable from any ref. The regular expression can match any part of the + reachable from any ref, including HEAD. + The regular expression can match any part of the commit message. To match messages starting with a string, one can use e.g. ':/^foo'. The special sequence ':/!' is reserved for modifiers to what is matched. ':/!-foo' performs a negative match, while ':/!!foo' matches a |