* maint: Documentation/SubmittingPatches: clarify GMail section and SMTP show-branch: use DEFAULT_ABBREV instead of 7 t7502-commit: fix spelling test get_git_work_tree() return value for NULL
···4141 maintainer (gitster@pobox.com) if (and only if) the patch
4242 is ready for inclusion. If you use git-send-email(1),
4343 please test it first by sending email to yourself.
4444+ - see below for instructions specific to your mailer
44454546Long version:
4647···546547547548GMail does not appear to have any way to turn off line wrapping in the web
548549interface, so this will mangle any emails that you send. You can however
549549-use any IMAP email client to connect to the google imap server, and forward
550550+use "git send e-mail" and send your patches through the GMail SMTP server, or
551551+use any IMAP email client to connect to the google IMAP server and forward
550552the emails through that.
553553+554554+To use "git send-email" and send your patches through the GMail SMTP server,
555555+edit ~/.gitconfig to specify your account settings:
556556+557557+[sendemail]
558558+ smtpencryption = tls
559559+ smtpserver = smtp.gmail.com
560560+ smtpuser = user@gmail.com
561561+ smtppass = p4ssw0rd
562562+ smtpserverport = 587
563563+564564+Once your commits are ready to be sent to the mailing list, run the
565565+following commands:
566566+567567+ $ git format-patch --cover-letter -M origin/master -o outgoing/
568568+ $ edit outgoing/0000-*
569569+ $ git send-email outgoing/*
551570552571To submit using the IMAP interface, first, edit your ~/.gitconfig to specify your
553572account settings:
···564583that the "Folder doesn't exist".
565584566585Once your commits are ready to be sent to the mailing list, run the
567567-following command to send the patch emails to your Gmail Drafts
568568-folder.
586586+following commands:
569587570588 $ git format-patch --cover-letter -M --stdout origin/master | git imap-send
571589···573591interface will line wrap no matter what, so you need to use a real
574592IMAP client).
575593576576-Alternatively, you can use "git send-email" and send your patches
577577-through the GMail SMTP server. edit ~/.gitconfig to specify your
578578-account settings:
579579-580580-[sendemail]
581581- smtpencryption = tls
582582- smtpserver = smtp.gmail.com
583583- smtpuser = user@gmail.com
584584- smtppass = p4ssw0rd
585585- smtpserverport = 587
586586-587587-Once your commits are ready to be sent to the mailing list, run the
588588-following commands:
589589-590590- $ git format-patch --cover-letter -M origin/master -o outgoing/
591591- $ git send-email outgoing/*
···150150151151static int path_outside_repo(const char *path)
152152{
153153- /*
154154- * We have already done setup_git_directory_gently() so we
155155- * know we are inside a git work tree already.
156156- */
157153 const char *work_tree;
158154 size_t len;
159155160156 if (!is_absolute_path(path))
161157 return 0;
162158 work_tree = get_git_work_tree();
159159+ if (!work_tree)
160160+ return 1;
163161 len = strlen(work_tree);
164162 if (strncmp(path, work_tree, len) ||
165163 (path[len] != '\0' && path[len] != '/'))
+1-1
t/t7502-commit.sh
···35353636'
37373838-test_expect_success 'partial modification in a subdirecotry' '
3838+test_expect_success 'partial modification in a subdirectory' '
39394040 test_tick &&
4141 git commit -m "partial commit to subdirectory" not &&