<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/init-db.c, branch v0.99</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v0.99</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v0.99'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2005-07-06T17:39:59Z</updated>
<entry>
<title>[PATCH] Let umask do its work upon filesystem object creation.</title>
<updated>2005-07-06T17:39:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-07-06T08:21:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f312de018b48853d166040908b0ba2bf666e26c1'/>
<id>urn:sha1:f312de018b48853d166040908b0ba2bf666e26c1</id>
<content type='text'>
IIRC our strategy was to let the users' umask take care of the
final mode bits.  This patch fixes places that deviate from it.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>git-init-db: create "pack" subdirectory under objects</title>
<updated>2005-06-28T01:26:11Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-28T01:26:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f49fb35d0d58271dc7c93c2752ced0d743fdf12e'/>
<id>urn:sha1:f49fb35d0d58271dc7c93c2752ced0d743fdf12e</id>
<content type='text'>
Don't make the user have to mkdir it just because he's excited about the
new object pack functionality, do it for him.
</content>
</entry>
<entry>
<title>git-init-db: set up the full default environment</title>
<updated>2005-05-30T17:20:44Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-05-30T17:20:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cad88fdf8d1ebafb5d4d1b92eb243ff86bae740b'/>
<id>urn:sha1:cad88fdf8d1ebafb5d4d1b92eb243ff86bae740b</id>
<content type='text'>
Create .git/refs/{heads,tags} and make .git/HEAD be a symlink to
(the as yet non-existent) .git/refs/heads/master.
</content>
</entry>
<entry>
<title>sparse cleanup</title>
<updated>2005-05-20T18:46:10Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-05-20T18:46:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e99d59ff0bff349ef205cef1076e0354c8130680'/>
<id>urn:sha1:e99d59ff0bff349ef205cef1076e0354c8130680</id>
<content type='text'>
Fix various things that sparse complains about:
 - use NULL instead of 0
 - make sure we declare everything properly, or mark it static
 - use proper function declarations ("fn(void)" instead of "fn()")

Sparse is always right.
</content>
</entry>
<entry>
<title>Introduce GIT_DIR environment variable.</title>
<updated>2005-05-10T05:57:58Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-05-10T05:57:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8ac069ac0ab34e751e5f96b0244a5fec10f3e54f'/>
<id>urn:sha1:8ac069ac0ab34e751e5f96b0244a5fec10f3e54f</id>
<content type='text'>
During the mailing list discussion on renaming GIT_ environment
variables, people felt that having one environment that lets the
user (or Porcelain) specify both SHA1_FILE_DIRECTORY (now
GIT_OBJECT_DIRECTORY) and GIT_INDEX_FILE for the default layout
would be handy.  This change introduces GIT_DIR environment
variable, from which the defaults for GIT_INDEX_FILE and
GIT_OBJECT_DIRECTORY are derived.  When GIT_DIR is not defined,
it defaults to ".git".  GIT_INDEX_FILE defaults to
"$GIT_DIR/index" and GIT_OBJECT_DIRECTORY defaults to
"$GIT_DIR/objects".

Special thanks for ideas and discussions go to Petr Baudis and
Daniel Barkalow.  Bugs are mine ;-)

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Rename environment variables.</title>
<updated>2005-05-10T00:57:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-05-10T00:57:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d19938ab6053e3dad75a68a60ef8cad1f378b0e5'/>
<id>urn:sha1:d19938ab6053e3dad75a68a60ef8cad1f378b0e5</id>
<content type='text'>
H. Peter Anvin mentioned that using SHA1_whatever as an
environment variable name is not nice and we should instead use
names starting with "GIT_" prefix to avoid conflicts.  Here is
what this patch does:

 * Renames the following environment variables:

    New name                           Old Name

    GIT_AUTHOR_DATE                    AUTHOR_DATE
    GIT_AUTHOR_EMAIL                   AUTHOR_EMAIL
    GIT_AUTHOR_NAME                    AUTHOR_NAME
    GIT_COMMITTER_EMAIL                COMMIT_AUTHOR_EMAIL
    GIT_COMMITTER_NAME                 COMMIT_AUTHOR_NAME
    GIT_ALTERNATE_OBJECT_DIRECTORIES   SHA1_FILE_DIRECTORIES
    GIT_OBJECT_DIRECTORY               SHA1_FILE_DIRECTORY

 * Introduces a compatibility macro, gitenv(), which does an
   getenv() and if it fails calls gitenv_bc(), which in turn
   picks up the value from old name while giving a warning about
   using an old name.

 * Changes all users of the environment variable to fetch
   environment variable with the new name using gitenv().

 * Updates the documentation and scripts shipped with Linus GIT
   distribution.

The transition plan is as follows:

 * We will keep the backward compatibility list used by gitenv()
   for now, so the current scripts and user environments
   continue to work as before.  The users will get warnings when
   they have old name but not new name in their environment to
   the stderr.

 * The Porcelain layers should start using new names.  However,
   just in case it ends up calling old Plumbing layer
   implementation, they should also export old names, taking
   values from the corresponding new names, during the
   transition period.

 * After a transition period, we would drop the compatibility
   support and drop gitenv().  Revert the callers to directly
   call getenv() but keep using the new names.

   The last part is probably optional and the transition
   duration needs to be set to a reasonable value.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] introduce xmalloc and xrealloc</title>
<updated>2005-04-26T19:00:58Z</updated>
<author>
<name>Christopher Li</name>
<email>git@chrisli.org</email>
</author>
<published>2005-04-26T19:00:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=812666c8e66a21e668c0789d0422aa5a7db54961'/>
<id>urn:sha1:812666c8e66a21e668c0789d0422aa5a7db54961</id>
<content type='text'>
Introduce xmalloc and xrealloc to die gracefully with a descriptive
message when out of memory, rather than taking a SIGSEGV. 

Signed-off-by: Christopher Li&lt;chrislgit@chrisli.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] init-db.c: create and use safe_create_dir helper</title>
<updated>2005-04-20T04:48:15Z</updated>
<author>
<name>Zach Welch</name>
<email>zw@superlucidity.net</email>
</author>
<published>2005-04-20T04:48:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cb126d8d7906b3c15f313ca479259e567042840a'/>
<id>urn:sha1:cb126d8d7906b3c15f313ca479259e567042840a</id>
<content type='text'>
Factor mkdir calls into common safe_create_dir subroutine.

Signed-Off-By: Zach Welch &lt;zw@superlucidity.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] init-db.c: normalize env var handling.</title>
<updated>2005-04-20T04:48:15Z</updated>
<author>
<name>Zach Welch</name>
<email>zw@superlucidity.net</email>
</author>
<published>2005-04-20T04:48:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=addb315d341437b11477d617fda3fd80e7bce3c1'/>
<id>urn:sha1:addb315d341437b11477d617fda3fd80e7bce3c1</id>
<content type='text'>
Normalize init-db environment variable handling, allowing the creation
of object directories with something other than DEFAULT_DB_ENVIRONMENT.

Signed-Off-By: Zach Welch &lt;zw@superlucidity.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] init-db.c: cleanup comments</title>
<updated>2005-04-20T04:48:15Z</updated>
<author>
<name>Zach Welch</name>
<email>zw@superlucidity.net</email>
</author>
<published>2005-04-20T04:48:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4696cb93d1e2ded452e4e673633fd6495698ffcd'/>
<id>urn:sha1:4696cb93d1e2ded452e4e673633fd6495698ffcd</id>
<content type='text'>
Consolidate comments at top of main.

Signed-Off-By: Zach Welch &lt;zw@superlucidity.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
</feed>
