Skip to content

RFC git-describe <blob> ?

Stefan Beller git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3list-objects.c: factor out traverse_trees_and_blobslist-objects.c+28 -182 replies
2/3revision.h: introduce blob/tree walking in order of the commitslist-objects.c revision.h+4 -14 replies
3/3builtin/describe: describe blobsbuiltin/describe.c+54 -45 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchJohannes Schindelin
SeriesHelped-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.

Read the v1 thread

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