aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/revisions.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-07-24 14:50:49 -0700
committerJunio C Hamano <gitster@pobox.com>2018-07-24 14:50:49 -0700
commit53cae9e0f8d793c7e180f79b86ea2745c59f9bee (patch)
treed3f05ea6ec5784f6788a68076f7b326fa38df768 /Documentation/revisions.txt
parent18a86f32ab91a0be390508c0b3cdc374a00822a0 (diff)
parent6b3351e799f733561b98241f6ee88a9a72c13400 (diff)
downloadgit-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/revisions.txt')
-rw-r--r--Documentation/revisions.txt3
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