RFC git-describe <blob> ?
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | list-objects.c: factor out traverse_trees_and_blobslist-objects.c | +28 | 2 replies | |
| 2/3 | revision.h: introduce blob/tree walking in order of the commitslist-objects.c revision.h | +4 | 4 replies | |
| 3/3 | builtin/describe: describe blobsbuiltin/ | +54 | 5 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by.
| Patch | Johannes Schindelin |
|---|---|
| Series | Helped-by |
| 1/3 | |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC PATCH 0/3] git-describe <blob> ?
Occasionally a user is given an object hash from a blob as an error message or other output (e.g. [1]).
It would be useful to get a further description of such a blob, such as the (commit, path) tuple where this blob was introduced.
This implements the answer in builtin/describe, but I am not sure if that is the right place. (One office mate argued it could be a "reverse-blame" that tells you all the trees/commits where the blob is referenced from).
This is RFC for other reasons as well: tests, docs missing.
Any feedback welcome,
thanks,
Stefan
[1] https://stackoverflow.com/questions/10622179/how-to-find-identify-large-files-commits-in-git-history
Stefan Beller (3):
list-objects.c: factor out traverse_trees_and_blobs revision.h: introduce blob/tree walking in order of the commits builtin/describe: describe blobs
builtin/describe.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++---- list-objects.c | 48 +++++++++++++++++++++++++++----------------- revision.h | 3 ++- 3 files changed, 86 insertions(+), 23 deletions(-)
Signature · 1 line
2.15.0.rc2.443.gfcc3b81c0a