<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-format-patch.txt, branch v2.25.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.25.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.25.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2019-12-05T14:06:18Z</updated>
<entry>
<title>format-patch: teach --no-base</title>
<updated>2019-12-05T14:06:18Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-12-04T21:25:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=945dc55dda595a3e5449017797cb90599ed9ecb5'/>
<id>urn:sha1:945dc55dda595a3e5449017797cb90599ed9ecb5</id>
<content type='text'>
If `format.useAutoBase = true`, there was no way to override this from
the command-line. Teach the `--no-base` option in format-patch to
override `format.useAutoBase`.

Helped-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'dl/format-patch-cover-from-desc'</title>
<updated>2019-11-10T09:02:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-11-10T09:02:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b75ba9bbd13877ff3351e150d3d053baec81f0db'/>
<id>urn:sha1:b75ba9bbd13877ff3351e150d3d053baec81f0db</id>
<content type='text'>
The branch description ("git branch --edit-description") has been
used to fill the body of the cover letters by the format-patch
command; this has been enhanced so that the subject can also be
filled.

* dl/format-patch-cover-from-desc:
  format-patch: teach --cover-from-description option
  format-patch: use enum variables
  format-patch: replace erroneous and condition
</content>
</entry>
<entry>
<title>format-patch: teach --cover-from-description option</title>
<updated>2019-10-16T01:26:45Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-10-15T09:06:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bf8e65b30b77308710f14d523782f99a4a23eb55'/>
<id>urn:sha1:bf8e65b30b77308710f14d523782f99a4a23eb55</id>
<content type='text'>
Before, when format-patch generated a cover letter, only the body would
be populated with a branch's description while the subject would be
populated with placeholder text. However, users may want to have the
subject of their cover letter automatically populated in the same way.

Teach format-patch to accept the `--cover-from-description` option and
corresponding `format.coverFromDescription` config, allowing users to
populate different parts of the cover letter (including the subject
now).

Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: create leading components of output directory</title>
<updated>2019-10-12T02:51:20Z</updated>
<author>
<name>Bert Wesarg</name>
<email>bert.wesarg@googlemail.com</email>
</author>
<published>2019-10-11T08:36:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=edefc318731f69c3e5354ead9f7505e789562375'/>
<id>urn:sha1:edefc318731f69c3e5354ead9f7505e789562375</id>
<content type='text'>
'git format-patch -o &lt;outdir&gt;' did an equivalent of 'mkdir &lt;outdir&gt;'
not 'mkdir -p &lt;outdir&gt;', which is being corrected.

Avoid the usage of 'adjust_shared_perm' on the leading directories which
may have security implications. Achieved by temporarily disabling of
'config.sharedRepository' like 'git init' does.

Signed-off-by: Bert Wesarg &lt;bert.wesarg@googlemail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Doc: add more detail for git-format-patch</title>
<updated>2019-09-05T19:58:52Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-08-27T04:05:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c1a6f21cd4c18a8118dd90c858f76e386648310f'/>
<id>urn:sha1:c1a6f21cd4c18a8118dd90c858f76e386648310f</id>
<content type='text'>
In git-format-patch.txt, we were missing some key user information.
First of all, document the special value of `--base=auto`.

Next, while we're at it, surround option arguments with &lt;&gt; and change
existing names such as "Message-Id" to "message id", which conforms with
how existing documentation is written.

Finally, document the `format.outputDirectory` config and change
`format.coverletter` to use camel case.

Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</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>format-patch: teach format.notes config option</title>
<updated>2019-05-17T03:51:53Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-05-16T23:14:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=13cdf78094a5ba2968adb90707d27b98f53db1f7'/>
<id>urn:sha1:13cdf78094a5ba2968adb90707d27b98f53db1f7</id>
<content type='text'>
In git-format-patch, notes can be appended with the `--notes` option.
However, this must be specified by the user on an
invocation-by-invocation basis. If a user is not careful, it's possible
that they may forget to include it and generate a patch series without
notes.

Teach git-format-patch the `format.notes` config option. Its value is a
notes ref that will be automatically appended. The special value of
"standard" can be used to specify the standard notes. This option is
overridable with the `--no-notes` option in case a user wishes not to
append notes.

Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-format-patch.txt: document --no-notes option</title>
<updated>2019-05-13T01:58:18Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-05-10T18:37:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=83d9db7893e479a836b11e141c1717f0d5b829a0'/>
<id>urn:sha1:83d9db7893e479a836b11e141c1717f0d5b829a0</id>
<content type='text'>
Internally, git-format-patch uses the `handle_revision_opt` parser. The
parser handles the `--no-notes` option to negate an earlier `--notes`
option, but it isn't documented. Document this option so that users are
aware of it.

Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<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>doc: promote "git switch"</title>
<updated>2019-04-02T04:57:00Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2019-03-29T10:39:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=328c6cb853d7237098569de9f94bc3d259846a08'/>
<id>urn:sha1:328c6cb853d7237098569de9f94bc3d259846a08</id>
<content type='text'>
The new command "git switch" is added to avoid the confusion of
one-command-do-all "git checkout" for new users. They are also helpful
to avoid ambiguation context.

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

The "Checking out files" progress line in unpack-trees.c is also updated
to "Updating files" to be neutral to both git-checkout and git-switch.

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>
</feed>
