X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Frevisions.txt;h=3d4b79c480e2c84150bee96392ee2dd2a4b7d3ea;hb=083dd39ed4477dc24473986f92e1a1b01f0cfc79;hp=fe846f043ca30fdfc3bc93b2dbba75154bd38804;hpb=2d984464c6be7ced6772a8dcf95d6a461a659a78;p=git.git diff --git a/Documentation/revisions.txt b/Documentation/revisions.txt index fe846f043..3d4b79c48 100644 --- a/Documentation/revisions.txt +++ b/Documentation/revisions.txt @@ -107,11 +107,13 @@ the `$GIT_DIR/refs` directory or from the `$GIT_DIR/packed-refs` file. found. * A colon, followed by a slash, followed by a text (e.g. `:/fix nasty bug`): this names - a commit whose commit message starts with the specified text. + a commit whose commit message matches the specified regular expression. This name returns the youngest matching commit which is reachable from any ref. If the commit message starts with a '!', you have to repeat that; the special sequence ':/!', followed by something else than '!' is reserved for now. + The regular expression can match any part of the commit message. To + match messages starting with a string, one can use e.g. `:/^foo`. * A suffix ':' followed by a path (e.g. `HEAD:README`); this names the blob or tree at the given path in the tree-ish object named by the part