<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/gitcli.txt, branch v2.23.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.23.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.23.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2019-05-07T04:04:48Z</updated>
<entry>
<title>doc: promote "git restore"</title>
<updated>2019-05-07T04:04:48Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2019-04-25T09:45:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=80f537f79c16efeb7b92b3409ede434a230b5679'/>
<id>urn:sha1:80f537f79c16efeb7b92b3409ede434a230b5679</id>
<content type='text'>
The new command "git restore" (together with "git switch") are added
to avoid the confusion of one-command-do-all "git checkout" for new
users. They are also helpful to avoid ambiguous context.

For these reasons, promote it everywhere possible. This includes
documentation, suggestions/advice from other commands.

One nice thing about git-restore is the ability to restore
"everything", so it can be used in "git status" advice instead of both
"git checkout" and "git reset".  The three commands suggested by "git
status" are add, rm and restore.

"git checkout" is also removed from "git help" (i.e. it's no longer
considered a commonly used command)

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>checkout: split part of it to new command 'restore'</title>
<updated>2019-05-07T04:04:47Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2019-04-25T09:45:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=46e91b663badd99b3807ab34decfd32f3cbf15e7'/>
<id>urn:sha1:46e91b663badd99b3807ab34decfd32f3cbf15e7</id>
<content type='text'>
Previously the switching branch business of 'git checkout' becomes a
new command 'switch'. This adds the restore command for the checking
out paths path.

Similar to git-switch, a new man page is added to describe what the
command will become. The implementation will be updated shortly to
match the man page.

A couple main differences from 'git checkout &lt;paths&gt;':

- 'restore' by default will only update worktree. This matters more
  when --source is specified ('checkout &lt;tree&gt; &lt;paths&gt;' updates both
  worktree and index).

- 'restore --staged' can be used to restore the index. This command
  overlaps with 'git reset &lt;paths&gt;'.

- both worktree and index could also be restored at the same time
  (from a tree) when both --staged and --worktree are specified. This
  overlaps with 'git checkout &lt;tree&gt; &lt;paths&gt;'

- default source for restoring worktree and index is the index and
  HEAD respectively. A different (tree) source could be specified as
  with --source (*).

- when both index and worktree are restored, --source must be
  specified since the default source for these two individual targets
  are different (**)

- --no-overlay is enabled by default, if an entry is missing in the
  source, restoring means deleting the entry

(*) I originally went with --from instead of --source. I still think
  --from is a better name. The short option -f however is already
  taken by force. And I do think short option is good to have, e.g. to
  write -s@ or -s@^ instead of --source=HEAD.

(**) If you sit down and think about it, moving worktree's source from
  the index to HEAD makes sense, but nobody is really thinking it
  through when they type the commands.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Use proper syntax for replaceables in command docs</title>
<updated>2018-05-25T08:16:47Z</updated>
<author>
<name>Robert P. J. Day</name>
<email>rpjday@crashcourse.ca</email>
</author>
<published>2018-05-24T20:11:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=de613050efec781e8380a0267879a25b2d489513'/>
<id>urn:sha1:de613050efec781e8380a0267879a25b2d489513</id>
<content type='text'>
The standard for command documentation synopses appears to be:

  [...] means optional
  &lt;...&gt; means replaceable
  [&lt;...&gt;] means both optional and replaceable

So fix a number of doc pages that use incorrect variations of the
above.

Signed-off-by: Robert P. J. Day &lt;rpjday@crashcourse.ca&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>stash: update documentation to use 'stash entry'</title>
<updated>2017-06-19T05:16:36Z</updated>
<author>
<name>Liam Beguin</name>
<email>liambeguin@gmail.com</email>
</author>
<published>2017-06-17T22:30:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e01db917d8e5c66f9f90bf8c44995cf47200273a'/>
<id>urn:sha1:e01db917d8e5c66f9f90bf8c44995cf47200273a</id>
<content type='text'>
Most of the time, a 'stash entry' is called a 'stash'. Lets try to make
this more consistent and use 'stash entry' instead.

Signed-off-by: Liam Beguin &lt;liambeguin@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation: use "command-line" when used as a compound adjective, and fix other minor grammatical issues</title>
<updated>2014-05-21T20:57:10Z</updated>
<author>
<name>Jason St. John</name>
<email>jstjohn@purdue.edu</email>
</author>
<published>2014-05-21T18:52:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=06ab60c06606613f238f3154cb27cb22d9723967'/>
<id>urn:sha1:06ab60c06606613f238f3154cb27cb22d9723967</id>
<content type='text'>
Signed-off-by: Jason St. John &lt;jstjohn@purdue.edu&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ow/manpages-typofix'</title>
<updated>2014-02-07T19:55:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-02-07T19:55:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=efe5f1d25d198ae8796b6f095c2cffae270bb9b6'/>
<id>urn:sha1:efe5f1d25d198ae8796b6f095c2cffae270bb9b6</id>
<content type='text'>
Various typofixes, all looked correct.

* ow/manpages-typofix:
  Documentation: fix typos in man pages
</content>
</entry>
<entry>
<title>Documentation: fix typos in man pages</title>
<updated>2014-02-05T22:35:45Z</updated>
<author>
<name>Øystein Walle</name>
<email>oystwa@gmail.com</email>
</author>
<published>2014-02-05T22:19:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5fe8f49b6d59cf143a5898ddbb161444a95fa871'/>
<id>urn:sha1:5fe8f49b6d59cf143a5898ddbb161444a95fa871</id>
<content type='text'>
Signed-off-by: Øystein Walle &lt;oystwa@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jj/doc-markup-gitcli' into maint</title>
<updated>2013-12-17T19:36:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-12-17T19:36:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c8394bb46667c059f00433224f09bda8de878128'/>
<id>urn:sha1:c8394bb46667c059f00433224f09bda8de878128</id>
<content type='text'>
* jj/doc-markup-gitcli:
  Documentation/gitcli.txt: fix double quotes
</content>
</entry>
<entry>
<title>Merge branch 'nv/parseopt-opt-arg'</title>
<updated>2013-12-05T20:59:04Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-12-05T20:59:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3576f113cb3f36b9e2b36a84573754a922f2998b'/>
<id>urn:sha1:3576f113cb3f36b9e2b36a84573754a922f2998b</id>
<content type='text'>
Enhance "rev-parse --parseopt" mode to help parsing options with
an optional parameter.

* nv/parseopt-opt-arg:
  rev-parse --parseopt: add the --stuck-long mode
  Use the word 'stuck' instead of 'sticked'
</content>
</entry>
<entry>
<title>Merge branch 'jj/doc-markup-gitcli'</title>
<updated>2013-12-03T19:41:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-12-03T19:41:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0b6f39b06099a62e43deb78db624be5988bcf280'/>
<id>urn:sha1:0b6f39b06099a62e43deb78db624be5988bcf280</id>
<content type='text'>
* jj/doc-markup-gitcli:
  Documentation/gitcli.txt: fix double quotes
</content>
</entry>
</feed>
