<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/parse-options.h, branch v2.37.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.37.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.37.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2022-02-25T23:47:35Z</updated>
<entry>
<title>Merge branch 'ja/i18n-common-messages'</title>
<updated>2022-02-25T23:47:35Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-02-25T23:47:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d21d5ddfe675f9dbcdbb94ab01776115a2d1fdde'/>
<id>urn:sha1:d21d5ddfe675f9dbcdbb94ab01776115a2d1fdde</id>
<content type='text'>
Unify more messages to help l10n.

* ja/i18n-common-messages:
  i18n: fix some misformated placeholders in command synopsis
  i18n: remove from i18n strings that do not hold translatable parts
  i18n: factorize "invalid value" messages
  i18n: factorize more 'incompatible options' messages
</content>
</entry>
<entry>
<title>Merge branch 'rs/parse-options-lithelp-help'</title>
<updated>2022-02-12T00:55:58Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-02-12T00:55:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e66e9906e644ada571a6fd1e044503d292850574'/>
<id>urn:sha1:e66e9906e644ada571a6fd1e044503d292850574</id>
<content type='text'>
Comment update.

* rs/parse-options-lithelp-help:
  parse-options: document bracketing of argh
</content>
</entry>
<entry>
<title>Merge branch 'ab/cat-file'</title>
<updated>2022-02-05T17:42:31Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-02-05T17:42:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=008028a910b1bb820ad14b976665acf0f5cd4015'/>
<id>urn:sha1:008028a910b1bb820ad14b976665acf0f5cd4015</id>
<content type='text'>
Assorted updates to "git cat-file", especially "-h".

* ab/cat-file:
  cat-file: s/_/-/ in typo'd usage_msg_optf() message
  cat-file: don't whitespace-pad "(...)" in SYNOPSIS and usage output
  cat-file: use GET_OID_ONLY_TO_DIE in --(textconv|filters)
  object-name.c: don't have GET_OID_ONLY_TO_DIE imply *_QUIETLY
  cat-file: correct and improve usage information
  cat-file: fix remaining usage bugs
  cat-file: make --batch-all-objects a CMDMODE
  cat-file: move "usage" variable to cmd_cat_file()
  cat-file docs: fix SYNOPSIS and "-h" output
  parse-options API: add a usage_msg_optf()
  cat-file tests: test messaging on bad objects/paths
  cat-file tests: test bad usage
</content>
</entry>
<entry>
<title>i18n: factorize more 'incompatible options' messages</title>
<updated>2022-02-04T21:58:28Z</updated>
<author>
<name>Jean-Noël Avila</name>
<email>jn.avila@free.fr</email>
</author>
<published>2022-01-31T22:07:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a699367bb8749a338aefb092c5d7ac75c69d61e1'/>
<id>urn:sha1:a699367bb8749a338aefb092c5d7ac75c69d61e1</id>
<content type='text'>
Find more incompatible options to factorize.

When more than two options are mutually exclusive, print the ones
which are actually on the command line.

Signed-off-by: Jean-Noël Avila &lt;jn.avila@free.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>parse-options: document bracketing of argh</title>
<updated>2022-01-20T18:03:29Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2022-01-20T10:30:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=518e15db742ee58e73d486251c67218c6a0fa4f5'/>
<id>urn:sha1:518e15db742ee58e73d486251c67218c6a0fa4f5</id>
<content type='text'>
Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'js/branch-track-inherit'</title>
<updated>2022-01-10T19:52:54Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-01-10T19:52:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0669bdf4ebc095a2b26654292e1ff38245ccf88a'/>
<id>urn:sha1:0669bdf4ebc095a2b26654292e1ff38245ccf88a</id>
<content type='text'>
"git -c branch.autosetupmerge=inherit branch new old" makes "new"
to have the same upstream as the "old" branch, instead of marking
"old" itself as its upstream.

* js/branch-track-inherit:
  config: require lowercase for branch.*.autosetupmerge
  branch: add flags and config to inherit tracking
  branch: accept multiple upstream branches for tracking
</content>
</entry>
<entry>
<title>parse-options API: add a usage_msg_optf()</title>
<updated>2021-12-30T21:05:28Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-12-28T13:28:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fa476be8f0963d4dd512eaf8ee23b3cd3986a500'/>
<id>urn:sha1:fa476be8f0963d4dd512eaf8ee23b3cd3986a500</id>
<content type='text'>
Add a usage_msg_optf() as a shorthand for the sort of
usage_msg_opt(xstrfmt(...)) used in builtin/stash.c. I'll make more
use of this function in builtin/cat-file.c shortly.

The disconnect between the "..." and "fmt" is a bit unusual, but it
works just fine and this keeps it consistent with usage_msg_opt(),
i.e. a caller of it can be moved to usage_msg_optf() and not have to
have its arguments re-arranged.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>branch: add flags and config to inherit tracking</title>
<updated>2021-12-21T06:40:21Z</updated>
<author>
<name>Josh Steadmon</name>
<email>steadmon@google.com</email>
</author>
<published>2021-12-21T03:30:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d3115660b4cc4b1a32e77ddfd289afde5e4b94d8'/>
<id>urn:sha1:d3115660b4cc4b1a32e77ddfd289afde5e4b94d8</id>
<content type='text'>
It can be helpful when creating a new branch to use the existing
tracking configuration from the branch point. However, there is
currently not a method to automatically do so.

Teach git-{branch,checkout,switch} an "inherit" argument to the
"--track" option. When this is set, creating a new branch will cause the
tracking configuration to default to the configuration of the branch
point, if set.

For example, if branch "main" tracks "origin/main", and we run
`git checkout --track=inherit -b feature main`, then branch "feature"
will track "origin/main". Thus, `git status` will show us how far
ahead/behind we are from origin, and `git pull` will pull from origin.

This is particularly useful when creating branches across many
submodules, such as with `git submodule foreach ...` (or if running with
a patch such as [1], which we use at $job), as it avoids having to
manually set tracking info for each submodule.

Since we've added an argument to "--track", also add "--track=direct" as
another way to explicitly get the original "--track" behavior ("--track"
without an argument still works as well).

Finally, teach branch.autoSetupMerge a new "inherit" option. When this
is set, "--track=inherit" becomes the default behavior.

[1]: https://lore.kernel.org/git/20180927221603.148025-1-sbeller@google.com/

Signed-off-by: Josh Steadmon &lt;steadmon@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ab/parse-options-cleanup'</title>
<updated>2021-11-09T21:19:06Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-11-09T21:19:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=84c99b20231e77fe1df7ea487e3dc24359cba028'/>
<id>urn:sha1:84c99b20231e77fe1df7ea487e3dc24359cba028</id>
<content type='text'>
Last minute fix to the update already in 'master'.

* ab/parse-options-cleanup:
  parse-options.[ch]: revert use of "enum" for parse_options()
</content>
</entry>
<entry>
<title>parse-options.[ch]: revert use of "enum" for parse_options()</title>
<updated>2021-11-09T17:45:37Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-11-09T11:04:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=06a199f38b50ccea198c29216c69bb389ca23391'/>
<id>urn:sha1:06a199f38b50ccea198c29216c69bb389ca23391</id>
<content type='text'>
Revert the parse_options() prototype change in my recent
352e761388b (parse-options.[ch]: consistently use "enum
parse_opt_result", 2021-10-08) was incorrect. The parse_options()
function returns the number of argc elements that haven't been
processed, not "enum parse_opt_result".

Reported-by: SZEDER Gábor &lt;szeder.dev@gmail.com&gt;
Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
