Skip to content

minor show-index modernizations

Jeff King git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2make show-index a builtinMakefile builtin.h builtin/show-index.c +1 more+4 -22 replies
2/2show-index: update documentation for index v2Documentation/git-show-index.txt+20 -60 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/2] minor show-index modernizations

While recommending show-index to somebody today, I noticed that it has a few ancient warts. This series turns it into a builtin and fixes the documentation. I suspect it could do with some more modernization and friendliness, like:

- re-using the existing packfile.c code instead of re-implementing index-reading (though the packfile code would definitely need some refactoring to make this work)

- it could probably handle arguments as files instead of requiring stdin redirection

I'll leave those for now, as they're not worth the effort to me at this point. But everybody who _doesn't_ use the command benefits from making it a builtin, so it seems like an easy win.

[1/2]: make show-index a builtin
[2/2]: show-index: update documentation for index v2

 Documentation/git-show-index.txt     | 22 ++++++++++++++++------
 Makefile                             |  2 +-
 builtin.h                            |  1 +
 show-index.c => builtin/show-index.c |  2 +-
 git.c                                |  1 +
 5 files changed, 20 insertions(+), 8 deletions(-)
 rename show-index.c => builtin/show-index.c (96%)

-Peff