git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH 0/2] minor show-index modernizations
@ 2018-05-28  9:37 Jeff King
  2018-05-28  9:38 ` [PATCH 1/2] make show-index a builtin Jeff King
  2018-05-28  9:39 ` [PATCH 2/2] show-index: update documentation for index v2 Jeff King
  0 siblings, 2 replies; 5+ messages in thread
From: Jeff King @ 2018-05-28  9:37 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-05-28 17:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-28  9:37 [PATCH 0/2] minor show-index modernizations Jeff King
2018-05-28  9:38 ` [PATCH 1/2] make show-index a builtin Jeff King
2018-05-28 15:31   ` Junio C Hamano
2018-05-28 17:57     ` Jeff King
2018-05-28  9:39 ` [PATCH 2/2] show-index: update documentation for index v2 Jeff King

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).