<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/config.c, branch gitk-resize-error</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=gitk-resize-error</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=gitk-resize-error'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2022-01-10T19:52:54Z</updated>
<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='http://git.kilabit.info/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>config: require lowercase for branch.*.autosetupmerge</title>
<updated>2021-12-21T06:40:21Z</updated>
<author>
<name>Josh Steadmon</name>
<email>steadmon@google.com</email>
</author>
<published>2021-12-21T03:30:24Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=44f14a9d24cd9f04a0a789e58968d52d44d7f332'/>
<id>urn:sha1:44f14a9d24cd9f04a0a789e58968d52d44d7f332</id>
<content type='text'>
Although we only documented that branch.*.autosetupmerge would accept
"always" as a value, the actual implementation would accept any
combination of upper- or lower-case. Fix this to be consistent with
documentation and with other values of this config variable.

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>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='http://git.kilabit.info/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>config API: use get_error_routine(), not vreportf()</title>
<updated>2021-12-07T21:25:16Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-12-07T18:26:34Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=f5c39c3268107e1f3def70709d509fd24282832c'/>
<id>urn:sha1:f5c39c3268107e1f3def70709d509fd24282832c</id>
<content type='text'>
Change the git_die_config() function added in 5a80e97c827 (config: add
`git_die_config()` to the config-set API, 2014-08-07) to use the
public callbacks in the usage.[ch] API instead of the the underlying
vreportf() function.

In preceding commits the rest of the vreportf() users outside of
usage.c was migrated to die_message(), so we can now make it "static".

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>config.c: don't leak memory in handle_path_include()</title>
<updated>2021-10-21T23:26:45Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-10-21T19:54:14Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=25ad722126c77a546ab1ac7111f090bd8d0e3c13'/>
<id>urn:sha1:25ad722126c77a546ab1ac7111f090bd8d0e3c13</id>
<content type='text'>
Fix a memory leak in the error() path in handle_path_include(), this
allows us to run t1305-config-include.sh under SANITIZE=leak,
previously 4 tests there would fail. This fixes up a leak in
9b25a0b52e0 (config: add include directive, 2012-02-06).

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>config.c: remove unused git_config_key_is_valid()</title>
<updated>2021-09-28T21:54:15Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-09-28T12:56:03Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=73c5f67071f5448858f7f745e888a4a8aa9fd72f'/>
<id>urn:sha1:73c5f67071f5448858f7f745e888a4a8aa9fd72f</id>
<content type='text'>
The git_config_key_is_valid() function got left behind in a
refactoring in a9bcf6586d1 (alias: use the early config machinery to
expand aliases, 2017-06-14),

It previously had two users when it was added in 9e9de18f1ad (config:
silence warnings for command names with invalid keys, 2015-08-24), and
after 6a1e1bc0a15 (pager: use callbacks instead of configset,
2016-09-12) only one remained.

By removing it we can get rid of the "quiet" branches in this
function, as well as cases where "store_key" is NULL, for which there
are no other users.

Out of the 5 callers of git_config_parse_key() only one needs to pass
a non-NULL "size_t *baselen_", so we could remove the third parameter
from the public interface. I did not find that potential
simplification to be worthwhile.

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>Merge branch 'rs/drop-core-compression-vars'</title>
<updated>2021-09-23T20:44:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-09-23T20:44:46Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=e3b77a2d03258bc640076a2319cd3c289e87a389'/>
<id>urn:sha1:e3b77a2d03258bc640076a2319cd3c289e87a389</id>
<content type='text'>
Code clean-up.

* rs/drop-core-compression-vars:
  compression: drop write-only core_compression_* variables
</content>
</entry>
<entry>
<title>Merge branch 'jt/grep-wo-submodule-odb-as-alternate'</title>
<updated>2021-09-20T22:20:39Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-09-20T22:20:39Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=11e5d0a262c9ba664b7203a279513385bf055745'/>
<id>urn:sha1:11e5d0a262c9ba664b7203a279513385bf055745</id>
<content type='text'>
The code to make "git grep" recurse into submodules has been
updated to migrate away from the "add submodule's object store as
an alternate object store" mechanism (which is suboptimal).

* jt/grep-wo-submodule-odb-as-alternate:
  t7814: show lack of alternate ODB-adding
  submodule-config: pass repo upon blob config read
  grep: add repository to OID grep sources
  grep: allocate subrepos on heap
  grep: read submodule entry with explicit repo
  grep: typesafe versions of grep_source_init
  grep: use submodule-ODB-as-alternate lazy-addition
  submodule: lazily add submodule ODBs as alternates
</content>
</entry>
<entry>
<title>compression: drop write-only core_compression_* variables</title>
<updated>2021-09-12T23:23:28Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2021-09-11T11:45:43Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=8f0f11015683c0db1a06148300624fdb767b1d27'/>
<id>urn:sha1:8f0f11015683c0db1a06148300624fdb767b1d27</id>
<content type='text'>
Since 8de7eeb54b (compression: unify pack.compression configuration
parsing, 2016-11-15) the variables core_compression_level and
core_compression_seen are only set, but never read.  Remove them.

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>submodule-config: pass repo upon blob config read</title>
<updated>2021-09-08T18:48:09Z</updated>
<author>
<name>Jonathan Tan</name>
<email>jonathantanmy@google.com</email>
</author>
<published>2021-08-16T21:09:57Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=e3e8bf046e9682b0d67c07c6bc83ec9717d9c941'/>
<id>urn:sha1:e3e8bf046e9682b0d67c07c6bc83ec9717d9c941</id>
<content type='text'>
When reading the config of a submodule, if reading from a blob, read
using an explicitly specified repository instead of by adding the
submodule's ODB as an alternate and then reading an object from
the_repository.

This makes the "grep --recurse-submodules with submodules without
.gitmodules in the working tree" test in t7814 work when
GIT_TEST_FATAL_REGISTER_SUBMODULE_ODB is true.

Signed-off-by: Jonathan Tan &lt;jonathantanmy@google.com&gt;
Reviewed-by: Matheus Tavares &lt;matheus.bernardino@usp.br&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
