git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 2/2] make init-db use GIT_TEMPLATE_DIR if --template option is not specified
@ 2006-05-27 13:25 Petr Baudis
  2006-05-27 18:57 ` [PATCH] new environment variable GIT_TEMPLATE_DIR to override default template Matthias Lederhofer
  0 siblings, 1 reply; 4+ messages in thread
From: Petr Baudis @ 2006-05-27 13:25 UTC (permalink / raw)
  To: Matthias Lederhofer; +Cc: git

Dear diary, on Sat, May 27, 2006 at 12:25:39PM CEST, I got a letter
where Matthias Lederhofer <matled@gmx.net> said that...
> f61e19360f9b5965dda1ae762ffdab8ede860430
> diff --git a/builtin-init-db.c b/builtin-init-db.c
> index 2a1384c..cf5bd39 100644
> --- a/builtin-init-db.c
> +++ b/builtin-init-db.c
> @@ -253,6 +253,9 @@ int cmd_init_db(int argc, const char **a
>  			die(init_db_usage);
>  	}
>  
> +	if (!template_dir)
> +		template_dir = getenv("GIT_TEMPLATE_DIR");
> +
>  	/*
>  	 * Set up the default .git directory contents
>  	 */

Please document such changes, in the spirit of

diff --git a/Documentation/git-init-db.txt b/Documentation/git-init-db.txt
index 8a150d8..378810e 100644
--- a/Documentation/git-init-db.txt
+++ b/Documentation/git-init-db.txt
@@ -15,6 +15,8 @@ OPTIONS
 -------
 --template=<template_directory>::
 	Provide the directory from which templates will be used.
+	If not specified, the value of the `GIT_TEMPLATE_DIR` environment
+	variable is used instead.
 	The default template directory is `/usr/share/git-core/templates`.
 
 --shared::

(Signed-off-by: Petr Baudis <pasky@suse.cz>, whatever...)

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
A person is just about as big as the things that make them angry.

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-05-28 18:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-27 13:25 [PATCH 2/2] make init-db use GIT_TEMPLATE_DIR if --template option is not specified Petr Baudis
2006-05-27 18:57 ` [PATCH] new environment variable GIT_TEMPLATE_DIR to override default template Matthias Lederhofer
2006-05-28 17:33   ` Junio C Hamano
2006-05-28 18:15     ` Matthias Lederhofer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).