git-imap-send: Allow the program to be run from subdirectories of a git tree.
PATCH 1/1 git-imap-send: Allow the program to be run from subdirectories of a git tree.
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(-)
imap-send.c +1 -0
@@ -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) {
imap-send.c main(int argc, char **argv) · line 1300
Quoted 2 lines · Rob Shearman
imap-send.c +1
-0+setup_git_directory_gently (NULL );git_config (git_imap_config,NULL );
I know this is just about cosmetics, but the style of the rest of the code would suggest using
setup_git_directory_gently(NULL);
not
setup_git_directory_gently( NULL );
2008/6/1 Miklos Vajna <[email protected]>:
Quoted 12 lines · Rob Shearman
Quoted 2 lines
+ setup_git_directory_gently( NULL ); git_config(git_imap_config, NULL);I know this is just about cosmetics, but the style of the rest of the code would suggest using
setup_git_directory_gently(NULL);not
setup_git_directory_gently( NULL );
This isn't my normal coding style - I was trying to match the coding style to the rest of the file. Only the subsequent line to my added line uses the "func(arg)" style instead of the "func( arg )" style and that line was changed to the former very recently.
A patch to fix the style of the call to git_config could be done separately to this one.
Signature · 1 line
Rob Shearman
Quoted 8 lines · Rob Shearman
Quoted 3 lines
not
setup_git_directory_gently( NULL );This isn't my normal coding style - I was trying to match the coding style to the rest of the file. Only the subsequent line to my added line uses the "func(arg)" style instead of the "func( arg )" style and that line was changed to the former very recently.
Ah, I see. I haven't looked at imap-send.c specifically, it seems that this weird "func( arg )" style is used there a lot of times, so sorry for bothering you with cosmetics.