Re: [PATCH 7/9] get_short_oid / peel_onion: ^{tree} should mean tree, not treeish

2018-04-30 Thread brian m. carlson
On Mon, Apr 30, 2018 at 10:07:32PM +, Ævar Arnfjörð Bjarmason wrote: > diff --git a/sha1-name.c b/sha1-name.c > index 023f9471a8..b61c0558d9 100644 > --- a/sha1-name.c > +++ b/sha1-name.c > @@ -970,7 +970,7 @@ static int peel_onion(const char *name, int len, struct > object_id *oid, >

[PATCH 7/9] get_short_oid / peel_onion: ^{tree} should mean tree, not treeish

2018-04-30 Thread Ævar Arnfjörð Bjarmason
After the recent series of patches ^{tag} and ^{blob} now work to get just the tags and blobs, but ^{tree} will still list any tree-ish (commits, tags and trees). The previous behavior was added in ed1ca6025f ("peel_onion: disambiguate to favor tree-ish when we know we want a tree-ish",