<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/path.c, branch v1.7.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.7.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.7.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2010-03-07T20:47:15Z</updated>
<entry>
<title>Merge branch 'nd/root-git'</title>
<updated>2010-03-07T20:47:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-03-07T20:47:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c2b456b8956c2091318edaee362119e0e96b86b7'/>
<id>urn:sha1:c2b456b8956c2091318edaee362119e0e96b86b7</id>
<content type='text'>
* nd/root-git:
  Add test for using Git at root of file system
  Support working directory located at root
  Move offset_1st_component() to path.c
  init-db, rev-parse --git-dir: do not append redundant slash
  make_absolute_path(): Do not append redundant slash

Conflicts:
	setup.c
	sha1_file.c
</content>
</entry>
<entry>
<title>Merge branch 'mm/mkstemps-mode-for-packfiles'</title>
<updated>2010-03-07T20:47:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-03-07T20:47:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=87912fd617fb24ebcaa1c3ec57178821db9d2980'/>
<id>urn:sha1:87912fd617fb24ebcaa1c3ec57178821db9d2980</id>
<content type='text'>
* mm/mkstemps-mode-for-packfiles:
  Use git_mkstemp_mode instead of plain mkstemp to create object files
  git_mkstemps_mode: don't set errno to EINVAL on exit.
  Use git_mkstemp_mode and xmkstemp_mode in odb_mkstemp, not chmod later.
  git_mkstemp_mode, xmkstemp_mode: variants of gitmkstemps with mode argument.
  Move gitmkstemps to path.c
  Add a testcase for ACL with restrictive umask.
</content>
</entry>
<entry>
<title>git_mkstemps_mode: don't set errno to EINVAL on exit.</title>
<updated>2010-02-22T23:24:46Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2010-02-22T22:32:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1d9740cb324f7f5d798ecfc259dc213b244ad9b7'/>
<id>urn:sha1:1d9740cb324f7f5d798ecfc259dc213b244ad9b7</id>
<content type='text'>
When reaching the end of git_mkstemps_mode, at least one call to open()
has been done, and errno has been set accordingly. Setting errno is
therefore not necessary, and actually harmfull since callers can't
distinguish e.g. permanent failure from ENOENT, which can just mean that
we need to create the containing directory.

Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git_mkstemp_mode, xmkstemp_mode: variants of gitmkstemps with mode argument.</title>
<updated>2010-02-22T23:24:45Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2010-02-22T22:32:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b862b61c03797fd00490bb8caf05be840b79c6cb'/>
<id>urn:sha1:b862b61c03797fd00490bb8caf05be840b79c6cb</id>
<content type='text'>
gitmkstemps emulates the behavior of mkstemps, which is usually used
to create files in a shared directory like /tmp/, hence, it creates
files with permission 0600.

Add git_mkstemps_mode() that allows us to specify the desired mode, and
make git_mkstemps() a wrapper that always uses 0600 to call it. Later we
will use git_mkstemps_mode() when creating pack files.

Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Move gitmkstemps to path.c</title>
<updated>2010-02-22T23:24:45Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2010-02-22T22:32:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=00787ed55adbc2350efa911bf0bdebf6ca08c095'/>
<id>urn:sha1:00787ed55adbc2350efa911bf0bdebf6ca08c095</id>
<content type='text'>
This function used to be only a compatibility function, but we're
going to extend it and actually use it, so make it part of Git.

Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/typo'</title>
<updated>2010-02-17T06:45:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-02-17T06:45:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6d816301cd53e54af3398b634d47588a6f184be4'/>
<id>urn:sha1:6d816301cd53e54af3398b634d47588a6f184be4</id>
<content type='text'>
* jc/typo:
  Typofixes outside documentation area
</content>
</entry>
<entry>
<title>Move offset_1st_component() to path.c</title>
<updated>2010-02-16T16:54:34Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2010-02-16T05:22:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4bb43de25977063187dedf054122985bc5a2660e'/>
<id>urn:sha1:4bb43de25977063187dedf054122985bc5a2660e</id>
<content type='text'>
The implementation is also lightly modified to use is_dir_sep()
instead of hardcoding '/'.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>setenv(GIT_DIR) clean-up</title>
<updated>2010-02-06T18:39:20Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2010-02-06T09:35:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=717c3972dafa9d792a331b98a09d3cee88c17618'/>
<id>urn:sha1:717c3972dafa9d792a331b98a09d3cee88c17618</id>
<content type='text'>
This patch converts the setenv() calls in path.c and setup.c.  After
the call, git grep with a pager works again in bare repos.

It leaves the setenv(GIT_DIR_ENVIRONMENT, ...) calls in git.c alone, as
they respond to command line switches that emulate the effect of setting
the environment variable directly.

The remaining site in environment.c is in set_git_dir() and is left
alone, too, of course.  Finally, builtin-init-db.c is left changed
because the repo is still being carefully constructed when the
environment variable is set.

This fixes git shortlog when run inside a git directory, which had been
broken by abe549e1.

Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Typofixes outside documentation area</title>
<updated>2010-02-04T05:28:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-02-04T05:23:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9517e6b84357252e1882091343661c34d978771e'/>
<id>urn:sha1:9517e6b84357252e1882091343661c34d978771e</id>
<content type='text'>
    begining -&gt; beginning
    canonicalizations -&gt; canonicalization
    comand -&gt; command
    dewrapping -&gt; unwrapping
    dirtyness -&gt; dirtiness
    DISCLAMER -&gt; DISCLAIMER
    explicitely -&gt; explicitly
    feeded -&gt; fed
    impiled -&gt; implied
    madatory -&gt; mandatory
    mimick -&gt; mimic
    preceeding -&gt; preceding
    reqeuest -&gt; request
    substition -&gt; substitution

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>ignore duplicated slashes in make_relative_path()</title>
<updated>2010-01-22T23:34:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-01-22T03:05:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=288123f01cb1b835edbf6e2e188159c2ff858aca'/>
<id>urn:sha1:288123f01cb1b835edbf6e2e188159c2ff858aca</id>
<content type='text'>
The function takes two paths, an early part of abs is supposed to match
base; otherwise abs is not a path under base and the function returns the
full path of abs.  The caller can easily confuse the implementation by
giving duplicated and needless slashes in these path arguments.

Credit for test script, motivation and initial patch goes to Thomas Rast.
A follow-up fix (squashed) is by Hannes.

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