Thread (12 messages) 12 messages, 3 authors, 2021-08-11

Re: [PATCH 6/7] stage: add 'diff' subcommand

flat view

From: Felipe Contreras <hidden>
Date: 2021-08-11 07:24:40

Bagas Sanjaya wrote:
On 11/08/21 11.57, Felipe Contreras wrote:
quoted
@@ -12,6 +12,7 @@ SYNOPSIS
  'git stage' [options] [--] [<paths>...]
  'git stage' (-a | --add) [options] [--] [<paths>...]
  'git stage' (-r | --remove) [options] [--] [<paths>...]
+'git stage' (-d | --diff) [options] [--] [<paths>...]
  
  
  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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help