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
This commit is contained in:
@ -41,6 +41,7 @@ Checklist (and a short version for the impatient):
|
|||||||
maintainer (gitster@pobox.com) if (and only if) the patch
|
maintainer (gitster@pobox.com) if (and only if) the patch
|
||||||
is ready for inclusion. If you use git-send-email(1),
|
is ready for inclusion. If you use git-send-email(1),
|
||||||
please test it first by sending email to yourself.
|
please test it first by sending email to yourself.
|
||||||
|
- see below for instructions specific to your mailer
|
||||||
|
|
||||||
Long version:
|
Long version:
|
||||||
|
|
||||||
@ -546,9 +547,27 @@ Gmail
|
|||||||
|
|
||||||
GMail does not appear to have any way to turn off line wrapping in the web
|
GMail does not appear to have any way to turn off line wrapping in the web
|
||||||
interface, so this will mangle any emails that you send. You can however
|
interface, so this will mangle any emails that you send. You can however
|
||||||
use any IMAP email client to connect to the google imap server, and forward
|
use "git send e-mail" and send your patches through the GMail SMTP server, or
|
||||||
|
use any IMAP email client to connect to the google IMAP server and forward
|
||||||
the emails through that.
|
the emails through that.
|
||||||
|
|
||||||
|
To use "git send-email" and send your patches through the GMail SMTP server,
|
||||||
|
edit ~/.gitconfig to specify your account settings:
|
||||||
|
|
||||||
|
[sendemail]
|
||||||
|
smtpencryption = tls
|
||||||
|
smtpserver = smtp.gmail.com
|
||||||
|
smtpuser = user@gmail.com
|
||||||
|
smtppass = p4ssw0rd
|
||||||
|
smtpserverport = 587
|
||||||
|
|
||||||
|
Once your commits are ready to be sent to the mailing list, run the
|
||||||
|
following commands:
|
||||||
|
|
||||||
|
$ git format-patch --cover-letter -M origin/master -o outgoing/
|
||||||
|
$ edit outgoing/0000-*
|
||||||
|
$ git send-email outgoing/*
|
||||||
|
|
||||||
To submit using the IMAP interface, first, edit your ~/.gitconfig to specify your
|
To submit using the IMAP interface, first, edit your ~/.gitconfig to specify your
|
||||||
account settings:
|
account settings:
|
||||||
|
|
||||||
@ -564,8 +583,7 @@ You might need to instead use: folder = "[Google Mail]/Drafts" if you get an err
|
|||||||
that the "Folder doesn't exist".
|
that the "Folder doesn't exist".
|
||||||
|
|
||||||
Once your commits are ready to be sent to the mailing list, run the
|
Once your commits are ready to be sent to the mailing list, run the
|
||||||
following command to send the patch emails to your Gmail Drafts
|
following commands:
|
||||||
folder.
|
|
||||||
|
|
||||||
$ git format-patch --cover-letter -M --stdout origin/master | git imap-send
|
$ git format-patch --cover-letter -M --stdout origin/master | git imap-send
|
||||||
|
|
||||||
@ -573,19 +591,3 @@ Just make sure to disable line wrapping in the email client (GMail web
|
|||||||
interface will line wrap no matter what, so you need to use a real
|
interface will line wrap no matter what, so you need to use a real
|
||||||
IMAP client).
|
IMAP client).
|
||||||
|
|
||||||
Alternatively, you can use "git send-email" and send your patches
|
|
||||||
through the GMail SMTP server. edit ~/.gitconfig to specify your
|
|
||||||
account settings:
|
|
||||||
|
|
||||||
[sendemail]
|
|
||||||
smtpencryption = tls
|
|
||||||
smtpserver = smtp.gmail.com
|
|
||||||
smtpuser = user@gmail.com
|
|
||||||
smtppass = p4ssw0rd
|
|
||||||
smtpserverport = 587
|
|
||||||
|
|
||||||
Once your commits are ready to be sent to the mailing list, run the
|
|
||||||
following commands:
|
|
||||||
|
|
||||||
$ git format-patch --cover-letter -M origin/master -o outgoing/
|
|
||||||
$ git send-email outgoing/*
|
|
||||||
|
@ -313,7 +313,8 @@ static void show_one_commit(struct commit *commit, int no_name)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
printf("[%s] ",
|
printf("[%s] ",
|
||||||
find_unique_abbrev(commit->object.sha1, 7));
|
find_unique_abbrev(commit->object.sha1,
|
||||||
|
DEFAULT_ABBREV));
|
||||||
}
|
}
|
||||||
puts(pretty_str);
|
puts(pretty_str);
|
||||||
strbuf_release(&pretty);
|
strbuf_release(&pretty);
|
||||||
|
@ -150,16 +150,14 @@ static int queue_diff(struct diff_options *o,
|
|||||||
|
|
||||||
static int path_outside_repo(const char *path)
|
static int path_outside_repo(const char *path)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
* We have already done setup_git_directory_gently() so we
|
|
||||||
* know we are inside a git work tree already.
|
|
||||||
*/
|
|
||||||
const char *work_tree;
|
const char *work_tree;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
if (!is_absolute_path(path))
|
if (!is_absolute_path(path))
|
||||||
return 0;
|
return 0;
|
||||||
work_tree = get_git_work_tree();
|
work_tree = get_git_work_tree();
|
||||||
|
if (!work_tree)
|
||||||
|
return 1;
|
||||||
len = strlen(work_tree);
|
len = strlen(work_tree);
|
||||||
if (strncmp(path, work_tree, len) ||
|
if (strncmp(path, work_tree, len) ||
|
||||||
(path[len] != '\0' && path[len] != '/'))
|
(path[len] != '\0' && path[len] != '/'))
|
||||||
|
@ -35,7 +35,7 @@ test_expect_success 'partial' '
|
|||||||
|
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'partial modification in a subdirecotry' '
|
test_expect_success 'partial modification in a subdirectory' '
|
||||||
|
|
||||||
test_tick &&
|
test_tick &&
|
||||||
git commit -m "partial commit to subdirectory" not &&
|
git commit -m "partial commit to subdirectory" not &&
|
||||||
|
Reference in New Issue
Block a user