<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/git.git, branch ah/doc-gitattributes-empty-index</title>
<subtitle>github.com: git/git.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/git.git/'/>
<entry>
<title>doc: do not use `rm .git/index` when normalizing line endings</title>
<updated>2017-06-15T17:55:47+00:00</updated>
<author>
<name>Andreas Heiduk</name>
<email>asheiduk@gmail.com</email>
</author>
<published>2017-06-14T06:51:39+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/git.git/commit/?id=773a88914f7b951cb33b27b12b4b715b66451a07'/>
<id>773a88914f7b951cb33b27b12b4b715b66451a07</id>
<content type='text'>
When illustrating how to normalize the line endings, the
documentation in gitattributes tells the user to `rm .git/index`.

This is incorrect for two reasons:

 - Users shouldn't be instructed to mess around with the internal
   implementation of Git using raw file system tools like `rm`.

 - Within a submodule or an additional working tree `.git` is just a
   file containing a `gitdir: &lt;path&gt;` pointer into the real `.git`
   directory.  Therefore `rm .git/index` does not work.

The purpose of the `rm .git/index` instruction is to remove all entries
from the index without touching the working tree.  The way to do this
with Git is to use `read-tree --empty`.

Signed-off-by: Andreas Heiduk &lt;asheiduk@gmail.com&gt;
Helped-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Helped-by: Torsten Bögershausen &lt;tboegi@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When illustrating how to normalize the line endings, the
documentation in gitattributes tells the user to `rm .git/index`.

This is incorrect for two reasons:

 - Users shouldn't be instructed to mess around with the internal
   implementation of Git using raw file system tools like `rm`.

 - Within a submodule or an additional working tree `.git` is just a
   file containing a `gitdir: &lt;path&gt;` pointer into the real `.git`
   directory.  Therefore `rm .git/index` does not work.

The purpose of the `rm .git/index` instruction is to remove all entries
from the index without touching the working tree.  The way to do this
with Git is to use `read-tree --empty`.

Signed-off-by: Andreas Heiduk &lt;asheiduk@gmail.com&gt;
Helped-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Helped-by: Torsten Bögershausen &lt;tboegi@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Prepare for 2.13.2</title>
<updated>2017-06-13T20:30:16+00:00</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-13T20:30:16+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/git.git/commit/?id=fd99e2bda0ca6a361ef03c04d6d7fdc7a9c40b78'/>
<id>fd99e2bda0ca6a361ef03c04d6d7fdc7a9c40b78</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'ad/pull-remote-doc' into maint</title>
<updated>2017-06-13T20:27:06+00:00</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-13T20:27:06+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/git.git/commit/?id=603d52d3cc2264f04a6f17ec67654f1a60793087'/>
<id>603d52d3cc2264f04a6f17ec67654f1a60793087</id>
<content type='text'>
Docfix.

* ad/pull-remote-doc:
  docs: fix formatting and grammar
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Docfix.

* ad/pull-remote-doc:
  docs: fix formatting and grammar
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'jk/drop-free-refspecs' into maint</title>
<updated>2017-06-13T20:27:06+00:00</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-13T20:27:06+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/git.git/commit/?id=9451a7b629478790ad621d41b3f12ab8aa9097cc'/>
<id>9451a7b629478790ad621d41b3f12ab8aa9097cc</id>
<content type='text'>
Code clean-up.

* jk/drop-free-refspecs:
  remote: drop free_refspecs() function
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Code clean-up.

* jk/drop-free-refspecs:
  remote: drop free_refspecs() function
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'jk/connect-symref-info-leak-fix' into maint</title>
<updated>2017-06-13T20:27:05+00:00</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-13T20:27:05+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/git.git/commit/?id=87d4fdd9805edfe582bcbe92da638bb7eeb1725d'/>
<id>87d4fdd9805edfe582bcbe92da638bb7eeb1725d</id>
<content type='text'>
Leakfix.

* jk/connect-symref-info-leak-fix:
  connect.c: fix leak in parse_one_symref_info()
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Leakfix.

* jk/connect-symref-info-leak-fix:
  connect.c: fix leak in parse_one_symref_info()
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'rf/completion-config-commit' into maint</title>
<updated>2017-06-13T20:27:05+00:00</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-13T20:27:05+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/git.git/commit/?id=e0538abaf7ad330ab639f418e9de82ef8adbe5bb'/>
<id>e0538abaf7ad330ab639f418e9de82ef8adbe5bb</id>
<content type='text'>
Completion update.

* rf/completion-config-commit:
  completion: add completions for git config commit
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Completion update.

* rf/completion-config-commit:
  completion: add completions for git config commit
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'ab/t3070-test-dedup' into maint</title>
<updated>2017-06-13T20:27:04+00:00</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-13T20:27:04+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/git.git/commit/?id=cbbe1c87130f066692253fc9cd87b6f65f31e2dc'/>
<id>cbbe1c87130f066692253fc9cd87b6f65f31e2dc</id>
<content type='text'>
Test cleanup.

* ab/t3070-test-dedup:
  wildmatch test: remove redundant duplicate test
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Test cleanup.

* ab/t3070-test-dedup:
  wildmatch test: remove redundant duplicate test
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'jh/memihash-opt' into maint</title>
<updated>2017-06-13T20:27:04+00:00</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-13T20:27:03+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/git.git/commit/?id=a4478c9c0319a1d32dc8af76366ef8d855c16ff9'/>
<id>a4478c9c0319a1d32dc8af76366ef8d855c16ff9</id>
<content type='text'>
perf-test update.

* jh/memihash-opt:
  p0004: don't error out if test repo is too small
  p0004: don't abort if multi-threaded is too slow
  p0004: use test_perf
  p0004: avoid using pipes
  p0004: simplify calls of test-lazy-init-name-hash
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
perf-test update.

* jh/memihash-opt:
  p0004: don't error out if test repo is too small
  p0004: don't abort if multi-threaded is too slow
  p0004: use test_perf
  p0004: avoid using pipes
  p0004: simplify calls of test-lazy-init-name-hash
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'tb/pull-ff-rebase-autostash' into maint</title>
<updated>2017-06-13T20:27:03+00:00</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-13T20:27:03+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/git.git/commit/?id=9e60e21e53a6a8be899f9834955017e0ff6e6906'/>
<id>9e60e21e53a6a8be899f9834955017e0ff6e6906</id>
<content type='text'>
"git pull --rebase --autostash" didn't auto-stash when the local history
fast-forwards to the upstream.

* tb/pull-ff-rebase-autostash:
  pull: ff --rebase --autostash works in dirty repo
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
"git pull --rebase --autostash" didn't auto-stash when the local history
fast-forwards to the upstream.

* tb/pull-ff-rebase-autostash:
  pull: ff --rebase --autostash works in dirty repo
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'jh/close-index-before-stat' into maint</title>
<updated>2017-06-13T20:27:02+00:00</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-13T20:27:02+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/git.git/commit/?id=f24e079cb6ecaa217e593c2d2620187044ba1b0d'/>
<id>f24e079cb6ecaa217e593c2d2620187044ba1b0d</id>
<content type='text'>
The timestamp of the index file is now taken after the file is
closed, to help Windows, on which a stale timestamp is reported by
fstat() on a file that is opened for writing and data was written
but not yet closed.

* jh/close-index-before-stat:
  read-cache: close index.lock in do_write_index
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The timestamp of the index file is now taken after the file is
closed, to help Windows, on which a stale timestamp is reported by
fstat() on a file that is opened for writing and data was written
but not yet closed.

* jh/close-index-before-stat:
  read-cache: close index.lock in do_write_index
</pre>
</div>
</content>
</entry>
</feed>
