Skip to content

Commit d0b16c8

Browse files
committed
Merge branch 'maint'
* 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
2 parents 770c541 + e498257 commit d0b16c8

File tree

4 files changed

+26
-25
lines changed

4 files changed

+26
-25
lines changed

Documentation/SubmittingPatches

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Checklist (and a short version for the impatient):
4141
maintainer ([email protected]) 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.
44+
- see below for instructions specific to your mailer
4445

4546
Long version:
4647

@@ -546,9 +547,27 @@ Gmail
546547

547548
GMail does not appear to have any way to turn off line wrapping in the web
548549
interface, so this will mangle any emails that you send. You can however
549-
use any IMAP email client to connect to the google imap server, and forward
550+
use "git send e-mail" and send your patches through the GMail SMTP server, or
551+
use any IMAP email client to connect to the google IMAP server and forward
550552
the emails through that.
551553

554+
To use "git send-email" and send your patches through the GMail SMTP server,
555+
edit ~/.gitconfig to specify your account settings:
556+
557+
[sendemail]
558+
smtpencryption = tls
559+
smtpserver = smtp.gmail.com
560+
smtpuser = [email protected]
561+
smtppass = p4ssw0rd
562+
smtpserverport = 587
563+
564+
Once your commits are ready to be sent to the mailing list, run the
565+
following commands:
566+
567+
$ git format-patch --cover-letter -M origin/master -o outgoing/
568+
$ edit outgoing/0000-*
569+
$ git send-email outgoing/*
570+
552571
To submit using the IMAP interface, first, edit your ~/.gitconfig to specify your
553572
account settings:
554573

@@ -564,28 +583,11 @@ You might need to instead use: folder = "[Google Mail]/Drafts" if you get an err
564583
that the "Folder doesn't exist".
565584

566585
Once your commits are ready to be sent to the mailing list, run the
567-
following command to send the patch emails to your Gmail Drafts
568-
folder.
586+
following commands:
569587

570588
$ git format-patch --cover-letter -M --stdout origin/master | git imap-send
571589

572590
Just make sure to disable line wrapping in the email client (GMail web
573591
interface will line wrap no matter what, so you need to use a real
574592
IMAP client).
575593

576-
Alternatively, you can use "git send-email" and send your patches
577-
through the GMail SMTP server. edit ~/.gitconfig to specify your
578-
account settings:
579-
580-
[sendemail]
581-
smtpencryption = tls
582-
smtpserver = smtp.gmail.com
583-
smtpuser = [email protected]
584-
smtppass = p4ssw0rd
585-
smtpserverport = 587
586-
587-
Once your commits are ready to be sent to the mailing list, run the
588-
following commands:
589-
590-
$ git format-patch --cover-letter -M origin/master -o outgoing/
591-
$ git send-email outgoing/*

builtin/show-branch.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ static void show_one_commit(struct commit *commit, int no_name)
313313
}
314314
else
315315
printf("[%s] ",
316-
find_unique_abbrev(commit->object.sha1, 7));
316+
find_unique_abbrev(commit->object.sha1,
317+
DEFAULT_ABBREV));
317318
}
318319
puts(pretty_str);
319320
strbuf_release(&pretty);

diff-no-index.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,14 @@ static int queue_diff(struct diff_options *o,
150150

151151
static int path_outside_repo(const char *path)
152152
{
153-
/*
154-
* We have already done setup_git_directory_gently() so we
155-
* know we are inside a git work tree already.
156-
*/
157153
const char *work_tree;
158154
size_t len;
159155

160156
if (!is_absolute_path(path))
161157
return 0;
162158
work_tree = get_git_work_tree();
159+
if (!work_tree)
160+
return 1;
163161
len = strlen(work_tree);
164162
if (strncmp(path, work_tree, len) ||
165163
(path[len] != '\0' && path[len] != '/'))

t/t7502-commit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ test_expect_success 'partial' '
3535
3636
'
3737

38-
test_expect_success 'partial modification in a subdirecotry' '
38+
test_expect_success 'partial modification in a subdirectory' '
3939
4040
test_tick &&
4141
git commit -m "partial commit to subdirectory" not &&

0 commit comments

Comments
 (0)