Skip to content

fix segfault and other oddities describing blobs

Jeff King git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5describe: pass oid struct by const pointerbuiltin/describe.c+4 -41 reply
2/5describe: error if blob not foundbuiltin/describe.c t/t6120-describe.sh+9 -03 replies
3/5describe: catch unborn branch in describe_blob()builtin/describe.c t/t6120-describe.sh+15 -12 replies
4/5describe: handle blob traversal with no commitsbuiltin/describe.c+4 -23 replies
4/5describe: handle blob traversal with no commitsbuiltin/describe.c t/t6120-describe.sh+20 -20 replies
5/5describe: pass commit to describe_commit()builtin/describe.c+9 -112 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] fix segfault and other oddities describing blobs
Quoted 2 lines · Jeff King

I'll send out a few patches in a moment (I guess I summoned some willpower in the interim).

Here's what I came up with.

[1/5]: describe: pass oid struct by const pointer [2/5]: describe: error if blob not found [3/5]: describe: catch unborn branch in describe_blob() [4/5]: describe: handle blob traversal with no commits [5/5]: describe: pass commit to describe_commit()

 builtin/describe.c  | 41 +++++++++++++++++++++++++----------------
 t/t6120-describe.sh | 14 ++++++++++++++
 2 files changed, 39 insertions(+), 16 deletions(-)

-Peff