<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git.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-07-11T22:16:48Z</updated>
<entry>
<title>Merge branch 'sg/git-C-empty-doc'</title>
<updated>2019-07-11T22:16:48Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-07-11T22:16:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=df73cb38d942d2fb305a0fbfedd9a093ca386c83'/>
<id>urn:sha1:df73cb38d942d2fb305a0fbfedd9a093ca386c83</id>
<content type='text'>
Doc update.

* sg/git-C-empty-doc:
  Document that 'git -C ""' works and doesn't change directory
</content>
</entry>
<entry>
<title>Merge branch 'nd/switch-and-restore'</title>
<updated>2019-07-09T22:25:44Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-07-09T22:25:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f496b064fc1135e0dded7f93d85d72eb0b302c22'/>
<id>urn:sha1:f496b064fc1135e0dded7f93d85d72eb0b302c22</id>
<content type='text'>
Two new commands "git switch" and "git restore" are introduced to
split "checking out a branch to work on advancing its history" and
"checking out paths out of the index and/or a tree-ish to work on
advancing the current history" out of the single "git checkout"
command.

* nd/switch-and-restore: (46 commits)
  completion: disable dwim on "git switch -d"
  switch: allow to switch in the middle of bisect
  t2027: use test_must_be_empty
  Declare both git-switch and git-restore experimental
  help: move git-diff and git-reset to different groups
  doc: promote "git restore"
  user-manual.txt: prefer 'merge --abort' over 'reset --hard'
  completion: support restore
  t: add tests for restore
  restore: support --patch
  restore: replace --force with --ignore-unmerged
  restore: default to --source=HEAD when only --staged is specified
  restore: reject invalid combinations with --staged
  restore: add --worktree and --staged
  checkout: factor out worktree checkout code
  restore: disable overlay mode by default
  restore: make pathspec mandatory
  restore: take tree-ish from --source option instead
  checkout: split part of it to new command 'restore'
  doc: promote "git switch"
  ...
</content>
</entry>
<entry>
<title>Document that 'git -C ""' works and doesn't change directory</title>
<updated>2019-07-01T17:42:49Z</updated>
<author>
<name>SZEDER Gábor</name>
<email>szeder.dev@gmail.com</email>
</author>
<published>2019-06-29T08:24:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1a64e07d235579ae0b3bc6d1f081a51a6e48a4d1'/>
<id>urn:sha1:1a64e07d235579ae0b3bc6d1f081a51a6e48a4d1</id>
<content type='text'>
It's been behaving so since 6a536e2076 (git: treat "git -C '&lt;path&gt;'"
as a no-op when &lt;path&gt; is empty, 2015-03-06).

Signed-off-by: SZEDER Gábor &lt;szeder.dev@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'po/git-help-on-git-itself'</title>
<updated>2019-06-17T17:15:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-06-17T17:15:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d4fdeed00639b27c45856dfef338d46ec60b419e'/>
<id>urn:sha1:d4fdeed00639b27c45856dfef338d46ec60b419e</id>
<content type='text'>
"git help git" was hard to discover (well, at least for some
people).

* po/git-help-on-git-itself:
  Doc: git.txt: remove backticks from link and add git-scm.com/docs
  git.c: show usage for accessing the git(1) help page
</content>
</entry>
<entry>
<title>trace2: document the supported values of GIT_TRACE2* env variables</title>
<updated>2019-05-28T17:20:36Z</updated>
<author>
<name>SZEDER Gábor</name>
<email>szeder.dev@gmail.com</email>
</author>
<published>2019-05-19T14:43:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4e0d3aa18a60db8bf3448d4fceeed9c8ac8cc597'/>
<id>urn:sha1:4e0d3aa18a60db8bf3448d4fceeed9c8ac8cc597</id>
<content type='text'>
The descriptions of the GIT_TRACE2* environment variables link to the
technical docs for further details on the supported values.  However,
a link like this only really works if the docs are viewed in a browser
and the full documentation is available.  OTOH, in 'man git' there are
no links to conveniently click on, and distro-shipped git packages
tend to include only the man pages, while the technical docs and the
docs in html format are in a separate 'git-doc' package.

So let's describe the supported values to make the manpage more
self-contained, but still keep the references to the technical docs
because the details of the SID, and the JSON and perf output formats
are definitely beyond the scope of 'man git'.

Signed-off-by: SZEDER Gábor &lt;szeder.dev@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>trace2: rename environment variables to GIT_TRACE2*</title>
<updated>2019-05-28T17:20:34Z</updated>
<author>
<name>SZEDER Gábor</name>
<email>szeder.dev@gmail.com</email>
</author>
<published>2019-05-19T14:43:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e4b75d6a1d3105958c307e526ae6759e86f7f837'/>
<id>urn:sha1:e4b75d6a1d3105958c307e526ae6759e86f7f837</id>
<content type='text'>
For an environment variable that is supposed to be set by users, the
GIT_TR2* env vars are just too unclear, inconsistent, and ugly.

Most of the established GIT_* environment variables don't use
abbreviations, and in case of the few that do (GIT_DIR,
GIT_COMMON_DIR, GIT_DIFF_OPTS) it's quite obvious what the
abbreviations (DIR and OPTS) stand for.  But what does TR stand for?
Track, traditional, trailer, transaction, transfer, transformation,
transition, translation, transplant, transport, traversal, tree,
trigger, truncate, trust, or ...?!

The trace2 facility, as the '2' suffix in its name suggests, is
supposed to eventually supercede Git's original trace facility.  It's
reasonable to expect that the corresponding environment variables
follow suit, and after the original GIT_TRACE variables they are
called GIT_TRACE2; there is no such thing is 'GIT_TR'.

All trace2-specific config variables are, very sensibly, in the
'trace2' section, not in 'tr2'.

OTOH, we don't gain anything at all by omitting the last three
characters of "trace" from the names of these environment variables.

So let's rename all GIT_TR2* environment variables to GIT_TRACE2*,
before they make their way into a stable release.

Signed-off-by: SZEDER Gábor &lt;szeder.dev@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Doc: git.txt: remove backticks from link and add git-scm.com/docs</title>
<updated>2019-05-16T01:44:11Z</updated>
<author>
<name>Philip Oakley</name>
<email>philipoakley@iee.org</email>
</author>
<published>2019-05-15T22:47:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e2dca4566d8fe4f6882b3cdb40d8ad9e45c1360c'/>
<id>urn:sha1:e2dca4566d8fe4f6882b3cdb40d8ad9e45c1360c</id>
<content type='text'>
While checking the html formatted git(1) manual page, it was noted
that the link to https://git.github.io/htmldocs/git.html was formatted
as code. Remove the backticks.

While at it, add the https://git-scm.com/docs link which one reviewer
noted had linkable section headings.

Helped-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Philip Oakley &lt;philipoakley@iee.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>trace2: add variable description to git.txt</title>
<updated>2019-05-13T13:54:02Z</updated>
<author>
<name>Derrick Stolee</name>
<email>dstolee@microsoft.com</email>
</author>
<published>2019-05-10T19:44:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=04b7e86e4854fecc8cca1d3c08af5cfe771e9091'/>
<id>urn:sha1:04b7e86e4854fecc8cca1d3c08af5cfe771e9091</id>
<content type='text'>
Documentation/technical/api-trace2.txt contains the full details
of the trace2 API and the GIT_TR2* environment variables. However,
most environment variables are included in Documentation/git.txt,
including the GIT_TRACE* variables.

Add a brief description of the GIT_TR2* variables with links to
the full technical details. The biggest difference from the
original variables is that we can specify a Unix Domain Socket.
Mention this difference, but leave the details to the technical
documents.

Reported-by: Szeder Gábor &lt;szeder.dev@gmail.com&gt;
Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.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>git.txt: remove empty line before list continuation</title>
<updated>2019-03-07T00:25:32Z</updated>
<author>
<name>Martin Ågren</name>
<email>martin.agren@gmail.com</email>
</author>
<published>2019-03-06T06:30:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=837f01bd45ed9f41036f17b83c7877d45894c109'/>
<id>urn:sha1:837f01bd45ed9f41036f17b83c7877d45894c109</id>
<content type='text'>
This patch is a no-op for Asciidoctor, but makes AsciiDoc render this as
intended.

Signed-off-by: Martin Ågren &lt;martin.agren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
