git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/4] git-imap-send: Allow the program to be run from subdirectories of a git tree.

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 9, 2008, 01:15 UTC
Message-ID
<7v3amjq2mj.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1215555496-21335-1-git-send-email-robertshearman@gmail.com>
Robert Shearman <robertshearman@gmail.com> writes:
Show 17 quoted lines
> Call setup_git_directory_gently to allow git-imap-send to be used from subdirectories of a git tree.
> ---
>  imap-send.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/imap-send.c b/imap-send.c
> index 1ec1310..89a1532 100644
> --- a/imap-send.c
> +++ b/imap-send.c
> @@ -1296,6 +1296,7 @@ main(int argc, char **argv)
>  	/* init the random number generator */
>  	arc4_init();
>  
> +	setup_git_directory_gently( NULL );
>  	git_config(git_imap_config, NULL);
>  
>  	if (!imap_folder) {

I thought Jeff already explained why this NULL was a bad idea, but perhaps I was dreaming...

Besides, the extra spaces around the argument is very distracting.
Previous: Robert ShearmanNext: Jay Soffian
Message 2 of 4 in “git-imap-send: Allow the program to be run from subdirectories of a git tree.”
  1. 1/4 git-imap-send: Allow the program to be run from subdirectories of a git tree.Robert Shearman, Jul 8, 2008
  2. Junio C HamanoJul 9, 2008
  3. Jay SoffianJul 9, 2008
  4. Rob ShearmanJul 9, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.