<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/config.c, branch v2.17.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.17.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.17.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-02-13T21:39:08Z</updated>
<entry>
<title>Merge branch 'tb/crlf-conv-flags'</title>
<updated>2018-02-13T21:39:08Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-02-13T21:39:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9bc89b17e36db31a54bc3ff16e48b5cb6beb095b'/>
<id>urn:sha1:9bc89b17e36db31a54bc3ff16e48b5cb6beb095b</id>
<content type='text'>
Code clean-up.

* tb/crlf-conv-flags:
  convert_to_git(): safe_crlf/checksafe becomes int conv_flags
</content>
</entry>
<entry>
<title>Merge branch 'jh/partial-clone'</title>
<updated>2018-02-13T21:39:04Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-02-13T21:39:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6bed209a20a06f2d6b7142216dabff456de798e1'/>
<id>urn:sha1:6bed209a20a06f2d6b7142216dabff456de798e1</id>
<content type='text'>
The machinery to clone &amp; fetch, which in turn involves packing and
unpacking objects, have been told how to omit certain objects using
the filtering mechanism introduced by the jh/object-filtering
topic, and also mark the resulting pack as a promisor pack to
tolerate missing objects, taking advantage of the mechanism
introduced by the jh/fsck-promisors topic.

* jh/partial-clone:
  t5616: test bulk prefetch after partial fetch
  fetch: inherit filter-spec from partial clone
  t5616: end-to-end tests for partial clone
  fetch-pack: restore save_commit_buffer after use
  unpack-trees: batch fetching of missing blobs
  clone: partial clone
  partial-clone: define partial clone settings in config
  fetch: support filters
  fetch: refactor calculation of remote list
  fetch-pack: test support excluding large blobs
  fetch-pack: add --no-filter
  fetch-pack, index-pack, transport: partial clone
  upload-pack: add object filtering for partial clone
</content>
</entry>
<entry>
<title>convert_to_git(): safe_crlf/checksafe becomes int conv_flags</title>
<updated>2018-01-16T20:35:56Z</updated>
<author>
<name>Torsten Bögershausen</name>
<email>tboegi@web.de</email>
</author>
<published>2018-01-13T22:49:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8462ff43e42ab67cecd16fdfb59451a53cc8a945'/>
<id>urn:sha1:8462ff43e42ab67cecd16fdfb59451a53cc8a945</id>
<content type='text'>
When calling convert_to_git(), the checksafe parameter defined what
should happen if the EOL conversion (CRLF --&gt; LF --&gt; CRLF) does not
roundtrip cleanly. In addition, it also defined if line endings should
be renormalized (CRLF --&gt; LF) or kept as they are.

checksafe was an safe_crlf enum with these values:
SAFE_CRLF_FALSE:       do nothing in case of EOL roundtrip errors
SAFE_CRLF_FAIL:        die in case of EOL roundtrip errors
SAFE_CRLF_WARN:        print a warning in case of EOL roundtrip errors
SAFE_CRLF_RENORMALIZE: change CRLF to LF
SAFE_CRLF_KEEP_CRLF:   keep all line endings as they are

In some cases the integer value 0 was passed as checksafe parameter
instead of the correct enum value SAFE_CRLF_FALSE. That was no problem
because SAFE_CRLF_FALSE is defined as 0.

FALSE/FAIL/WARN are different from RENORMALIZE and KEEP_CRLF. Therefore,
an enum is not ideal. Let's use a integer bit pattern instead and rename
the parameter to conv_flags to make it more generically usable. This
allows us to extend the bit pattern in a subsequent commit.

Reported-By: Randall S. Becker &lt;rsbecker@nexbridge.com&gt;
Helped-By: Lars Schneider &lt;larsxschneider@gmail.com&gt;
Signed-off-by: Torsten Bögershausen &lt;tboegi@web.de&gt;
Signed-off-by: Lars Schneider &lt;larsxschneider@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>partial-clone: define partial clone settings in config</title>
<updated>2017-12-08T17:58:51Z</updated>
<author>
<name>Jeff Hostetler</name>
<email>jeffhost@microsoft.com</email>
</author>
<published>2017-12-08T15:58:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1e1e39b308fe9dd68a3312992a06270da7dd07af'/>
<id>urn:sha1:1e1e39b308fe9dd68a3312992a06270da7dd07af</id>
<content type='text'>
Create get and set routines for "partial clone" config settings.
These will be used in a future commit by clone and fetch to
remember the promisor remote and the default filter-spec.

Signed-off-by: Jeff Hostetler &lt;jeffhost@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'hm/config-parse-expiry-date'</title>
<updated>2017-12-06T17:23:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-12-06T17:23:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6cddb7362ca3c7312b57a4f172bca5c953a45b6c'/>
<id>urn:sha1:6cddb7362ca3c7312b57a4f172bca5c953a45b6c</id>
<content type='text'>
"git config --expiry-date gc.reflogexpire" can read "2.weeks" from
the configuration and report it as a timestamp, just like "--int"
would read "1k" and report 1024, to help consumption by scripts.

* hm/config-parse-expiry-date:
  config: add --expiry-date
</content>
</entry>
<entry>
<title>Merge branch 'rs/config-write-section-fix'</title>
<updated>2017-11-27T02:06:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-11-27T02:06:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=51affbd52ddc09f3af156031da8d5d29dfcd1801'/>
<id>urn:sha1:51affbd52ddc09f3af156031da8d5d29dfcd1801</id>
<content type='text'>
There was a recent semantic mismerge in the codepath to write out a
section of a configuration section, which has been corrected.

* rs/config-write-section-fix:
  config: flip return value of write_section()
</content>
</entry>
<entry>
<title>Merge branch 'sd/branch-copy'</title>
<updated>2017-11-27T02:06:35Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-11-27T02:06:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6254330e4d075be1fdbef0349b40562d25157b6e'/>
<id>urn:sha1:6254330e4d075be1fdbef0349b40562d25157b6e</id>
<content type='text'>
Code clean-up.

* sd/branch-copy:
  config: avoid "write_in_full(fd, buf, len) != len" pattern
</content>
</entry>
<entry>
<title>Merge branch 'bp/fsmonitor'</title>
<updated>2017-11-21T05:07:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-11-21T05:07:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e05336bddacb90cf243aacc0f7b7f34f900453d7'/>
<id>urn:sha1:e05336bddacb90cf243aacc0f7b7f34f900453d7</id>
<content type='text'>
We learned to talk to watchman to speed up "git status" and other
operations that need to see which paths have been modified.

* bp/fsmonitor:
  fsmonitor: preserve utf8 filenames in fsmonitor-watchman log
  fsmonitor: read entirety of watchman output
  fsmonitor: MINGW support for watchman integration
  fsmonitor: add a performance test
  fsmonitor: add a sample integration script for Watchman
  fsmonitor: add test cases for fsmonitor extension
  split-index: disable the fsmonitor extension when running the split index test
  fsmonitor: add a test tool to dump the index extension
  update-index: add fsmonitor support to update-index
  ls-files: Add support in ls-files to display the fsmonitor valid bit
  fsmonitor: add documentation for the fsmonitor extension.
  fsmonitor: teach git to optionally utilize a file system monitor to speed up detecting new or changed files.
  update-index: add a new --force-write-index option
  preload-index: add override to enable testing preload-index
  bswap: add 64 bit endianness helper get_be64
</content>
</entry>
<entry>
<title>config: flip return value of write_section()</title>
<updated>2017-11-18T11:38:40Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2017-11-18T10:20:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=782c030ea21f02a5dfab3fd023e14084ebeff4dc'/>
<id>urn:sha1:782c030ea21f02a5dfab3fd023e14084ebeff4dc</id>
<content type='text'>
d9bd4cbb9cc (config: flip return value of store_write_*()) made
write_section() follow the convention of write(2) to return -1 on error
and the number of written bytes on success.  3b48045c6c7 (Merge branch
'sd/branch-copy') changed it back to returning 0 on error and 1 on
success, but left its callers still checking for negative values.

Let write_section() follow the convention of write(2) again to meet the
expectations of its callers.

Reported-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>config: add --expiry-date</title>
<updated>2017-11-18T03:31:29Z</updated>
<author>
<name>Haaris Mehmood</name>
<email>hsed@unimetic.com</email>
</author>
<published>2017-11-18T02:27:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5f9674243d0341519e5031681c941b0e1ad7a9e3'/>
<id>urn:sha1:5f9674243d0341519e5031681c941b0e1ad7a9e3</id>
<content type='text'>
Add --expiry-date as a data-type for config files when
'git config --get' is used. This will return any relative
or fixed dates from config files as timestamps.

This is useful for scripts (e.g. gc.reflogexpire) that work
with timestamps so that '2.weeks' can be converted to a format
acceptable by those scripts/functions.

Following the convention of git_config_pathname(), move
the helper function required for this feature from
builtin/reflog.c to builtin/config.c where other similar
functions exist (e.g. for --bool or --path), and match
the order of parameters with other functions (i.e. output
pointer as first parameter).

Signed-off-by: Haaris Mehmood &lt;hsed@unimetic.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
