From: Linus Torvalds Date: Wed, 22 Feb 2017 17:18:33 GMT Subject: Re: `git show --oneline commit` does not do what's intuitively expected Message-ID: In-Reply-To: <20170217040522.jugt4uuak74l3qjw@sigill.intra.peff.net> On Thu, Feb 16, 2017 at 8:05 PM, Jeff King wrote: > On Fri, Feb 17, 2017 at 02:51:36AM +0100, Luna Kid wrote: > >> tl;dr; --> Please add --no-diff (or --msg-only) to git show. We'll >> love you for that. :) > > I think it is already spelled "--no-patch", or "-s" for short. I think people should also learn about "--no-walk" (or the numberic walk limiters) to the revision walking logic, because it can often be useful. IOW, if you only want the commit info, you can certainly use "git show -s", but you can also use git log --no-walk .. list of commits .. or git log -1 to show a commit without any other details. Basically, "git show" for a commit does what is mostly equivalent to git log --cc --no-walk although "git show" then has other features too (ie it shows non-commits etc). Linus