From: Felipe Contreras Date: Wed, 11 Aug 2021 07:24:35 GMT Subject: Re: [PATCH 6/7] stage: add 'diff' subcommand Message-ID: <61137b336b712_209a208f7@natae.notmuch> In-Reply-To: <8034894f-a8dd-e1ee-1825-7cb172afdba3@gmail.com> Bagas Sanjaya wrote: > On 11/08/21 11.57, Felipe Contreras wrote: > > @@ -12,6 +12,7 @@ SYNOPSIS > > 'git stage' [options] [--] [...] > > 'git stage' (-a | --add) [options] [--] [...] > > 'git stage' (-r | --remove) [options] [--] [...] > > +'git stage' (-d | --diff) [options] [--] [...] > > > > > > DESCRIPTION > > @@ -32,11 +33,15 @@ OPTIONS > > --remove:: > > Remove changes from the staging area. See linkgit:git-reset[1]. > > > > +-d:: > > +--diff:: > > + View the changes staged for the next commit. See linkgit:git-diff[1]. > > > > Is it synonym to `git diff --staged`? Yes, it's the same thing. Although from discussions in 2013 people found it odd that the option is --staged when specifying something that affects the future. It should probably be `git diff --stage`. -- Felipe Contreras