Re: [PATCH v4] rev-list: teach --no-object-names to enable piping
- From
Jeff King <peff@peff.net>
- Date
- Jun 19, 2019, 21:30 UTC
- Message-ID
- <20190619213033.GC6571@sigill.intra.peff.net>
- In-Reply-To
- <20190619193134.GF100487@google.com>
On Wed, Jun 19, 2019 at 12:31:34PM -0700, Emily Shaffer wrote:
Show 6 quoted lines
> > I noticed in range-diff, too. So now --object-names can be used > > with --pretty (not that "rev-list --pretty --objects" makes much > > sense in the first place, so no point in testing that it works). > > Yeah, it works. It looks weird, but it works pretty much as you'd > expect:
I think that something like:
git rev-list --in-commit-order --oneline --objects HEAD
could make sense to get a rough idea of which commits are mentioning which objects (though in most cases I'd probably use "log --find-object" these days, since it's more precise; rev-list is looking in a funny reverse order).
-Peff