1git-name-rev(1)
2===============
34
NAME
5----
6git-name-rev - Find symbolic names for given revs
78
9
SYNOPSIS
10--------
11'git-name-rev' [--tags] ( --all | --stdin | <commitish>... )
1213
DESCRIPTION
14-----------
15Finds symbolic names suitable for human digestion for revisions given in any
16format parsable by git-rev-parse.
1718
19
OPTIONS
20-------
2122
--tags::
23Do not use branch names, but only tags to name the commits
2425
--all::
26List all commits reachable from all refs
2728
--stdin::
29Read from stdin, append "(<rev_name>)" to all sha1's of name'able
30commits, and pass to stdout
3132
EXAMPLE
33-------
3435
Given a commit, find out where it is relative to the local refs. Say somebody
36wrote you about that phantastic commit 33db5f4d9027a10e477ccf054b2c1ab94f74c85a.
37Of course, you look into the commit, but that only tells you what happened, but
38not the context.
3940
Enter git-name-rev:
4142
------------
43% git name-rev 33db5f4d9027a10e477ccf054b2c1ab94f74c85a
44------------
4546
Now you are wiser, because you know that it happened 940 revisions before v0.99.
4748
Another nice thing you can do is:
4950
------------
51% git log | git name-rev --stdin
52------------
5354
55
Author
56------
57Written by Johannes Schindelin <Johannes.Schindelin@gmx.de>
5859
Documentation
60--------------
61Documentation by Johannes Schindelin.
6263
GIT
64---
65Part of the gitlink:git[7] suite
66