<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/dir.h, branch v2.15.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.15.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.15.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-06-22T21:15:21Z</updated>
<entry>
<title>Merge branch 'pc/dir-count-slashes'</title>
<updated>2017-06-22T21:15:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-22T21:15:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=52ab95cfea15ae8a60fb4febc99d54034c8800b8'/>
<id>urn:sha1:52ab95cfea15ae8a60fb4febc99d54034c8800b8</id>
<content type='text'>
Three instances of the same helper function have been consolidated
to one.

* pc/dir-count-slashes:
  dir: create function count_slashes()
</content>
</entry>
<entry>
<title>dir: create function count_slashes()</title>
<updated>2017-06-12T20:26:55Z</updated>
<author>
<name>Prathamesh Chavan</name>
<email>pc44800@gmail.com</email>
</author>
<published>2017-06-08T18:08:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e0556a928fdba489307d13d8d4c4d2a461fbc3ad'/>
<id>urn:sha1:e0556a928fdba489307d13d8d4c4d2a461fbc3ad</id>
<content type='text'>
Similar functions exist in apply.c and builtin/show-branch.c for
counting the number of slashes in a string. Also in the later
patches, we introduce a third caller for the same. Hence, we unify
it now by cleaning the existing functions and declaring a common
function count_slashes in dir.h and implementing it in dir.c to
remove this code duplication.

Mentored-by: Christian Couder &lt;christian.couder@gmail.com&gt;
Mentored-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Prathamesh Chavan &lt;pc44800@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'sl/clean-d-ignored-fix'</title>
<updated>2017-06-02T06:06:05Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-02T06:06:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f4fd99bf6e5c27265ee2a9ccb9c2495854f67acb'/>
<id>urn:sha1:f4fd99bf6e5c27265ee2a9ccb9c2495854f67acb</id>
<content type='text'>
"git clean -d" used to clean directories that has ignored files,
even though the command should not lose ignored ones without "-x".
"git status --ignored"  did not list ignored and untracked files
without "-uall".  These have been corrected.

* sl/clean-d-ignored-fix:
  clean: teach clean -d to preserve ignored paths
  dir: expose cmp_name() and check_contains()
  dir: hide untracked contents of untracked dirs
  dir: recurse into untracked dirs for ignored files
  t7061: status --ignored should search untracked dirs
  t7300: clean -d should skip dirs with ignored files
</content>
</entry>
<entry>
<title>dir: expose cmp_name() and check_contains()</title>
<updated>2017-05-22T03:14:13Z</updated>
<author>
<name>Samuel Lijin</name>
<email>sxlijin@gmail.com</email>
</author>
<published>2017-05-18T08:21:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bbf504a9957e8a2a262619641ffa30348d71a76f'/>
<id>urn:sha1:bbf504a9957e8a2a262619641ffa30348d71a76f</id>
<content type='text'>
We want to use cmp_name() and check_contains() (which both compare
`struct dir_entry`s, the former in terms of the sort order, the latter
in terms of whether one lexically contains another) outside of dir.c,
so we have to (1) change their linkage and (2) rename them as
appropriate for the global namespace. The second is achieved by
renaming cmp_name() to cmp_dir_entry() and check_contains() to
check_dir_entry_contains().

Signed-off-by: Samuel Lijin &lt;sxlijin@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>dir: hide untracked contents of untracked dirs</title>
<updated>2017-05-22T03:14:09Z</updated>
<author>
<name>Samuel Lijin</name>
<email>sxlijin@gmail.com</email>
</author>
<published>2017-05-18T08:21:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fb898888491b83c9a3396fb559032ca78807a0c0'/>
<id>urn:sha1:fb898888491b83c9a3396fb559032ca78807a0c0</id>
<content type='text'>
When we taught read_directory_recursive() to recurse into untracked
directories in search of ignored files given DIR_SHOW_IGNORED_TOO, that
had the side effect of teaching it to collect the untracked contents of
untracked directories. It doesn't always make sense to return these,
though (we do need them for `clean -d`), so we introduce a flag
(DIR_KEEP_UNTRACKED_CONTENTS) to control whether or not read_directory()
strips dir-&gt;entries of the untracked contents of untracked dirs.

We also introduce check_contains() to check if one dir_entry corresponds
to a path which contains the path corresponding to another dir_entry.

This also fixes known breakages in t7061, since status --ignored now
searches untracked directories for ignored files.

Signed-off-by: Samuel Lijin &lt;sxlijin@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>dir: convert fill_directory to take an index</title>
<updated>2017-05-06T10:15:39Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-05-05T19:53:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0d32c183b636ffba6462b21ed0c844b6cb887b3f'/>
<id>urn:sha1:0d32c183b636ffba6462b21ed0c844b6cb887b3f</id>
<content type='text'>
Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>dir: convert read_directory to take an index</title>
<updated>2017-05-06T10:15:39Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-05-05T19:53:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2c1eb104543265c2d26cf36303b35e426dcacf68'/>
<id>urn:sha1:2c1eb104543265c2d26cf36303b35e426dcacf68</id>
<content type='text'>
Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>dir: convert is_excluded to take an index</title>
<updated>2017-05-06T10:15:39Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-05-05T19:53:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a0bba65b107651946431bee4c71d05d812988d9d'/>
<id>urn:sha1:a0bba65b107651946431bee4c71d05d812988d9d</id>
<content type='text'>
Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>dir: convert add_excludes to take an index</title>
<updated>2017-05-06T10:15:39Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-05-05T19:53:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=473e39307d8c9db93bd08d82898e7fff7002c8cb'/>
<id>urn:sha1:473e39307d8c9db93bd08d82898e7fff7002c8cb</id>
<content type='text'>
Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>dir: convert is_excluded_from_list to take an index</title>
<updated>2017-05-06T10:15:39Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-05-05T19:53:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fba92be8f73818c4e79dc0b93ba26733d0ba5efe'/>
<id>urn:sha1:fba92be8f73818c4e79dc0b93ba26733d0ba5efe</id>
<content type='text'>
Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
