зеркало из https://github.com/microsoft/git.git
Merge branch 'maint-1.6.3' into maint
* maint-1.6.3: Better usage string for reflog. hg-to-git: don't import the unused popen2 module send-email: remove debug trace config: Keep inner whitespace verbatim
This commit is contained in:
Коммит
f0df1293ac
|
@ -694,7 +694,7 @@ static int cmd_reflog_delete(int argc, const char **argv, const char *prefix)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static const char reflog_usage[] =
|
static const char reflog_usage[] =
|
||||||
"git reflog (expire | ...)";
|
"git reflog [ show | expire | delete ]";
|
||||||
|
|
||||||
int cmd_reflog(int argc, const char **argv, const char *prefix)
|
int cmd_reflog(int argc, const char **argv, const char *prefix)
|
||||||
{
|
{
|
||||||
|
|
10
config.c
10
config.c
|
@ -62,7 +62,8 @@ static char *parse_value(void)
|
||||||
if (comment)
|
if (comment)
|
||||||
continue;
|
continue;
|
||||||
if (isspace(c) && !quote) {
|
if (isspace(c) && !quote) {
|
||||||
space = 1;
|
if (len)
|
||||||
|
space++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!quote) {
|
if (!quote) {
|
||||||
|
@ -71,11 +72,8 @@ static char *parse_value(void)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (space) {
|
for (; space; space--)
|
||||||
if (len)
|
value[len++] = ' ';
|
||||||
value[len++] = ' ';
|
|
||||||
space = 0;
|
|
||||||
}
|
|
||||||
if (c == '\\') {
|
if (c == '\\') {
|
||||||
c = get_next_char();
|
c = get_next_char();
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os, os.path, sys
|
import os, os.path, sys
|
||||||
import tempfile, popen2, pickle, getopt
|
import tempfile, pickle, getopt
|
||||||
import re
|
import re
|
||||||
|
|
||||||
# Maps hg version -> git version
|
# Maps hg version -> git version
|
||||||
|
|
|
@ -450,7 +450,6 @@ sub check_file_rev_conflict($) {
|
||||||
try {
|
try {
|
||||||
$repo->command('rev-parse', '--verify', '--quiet', $f);
|
$repo->command('rev-parse', '--verify', '--quiet', $f);
|
||||||
if (defined($format_patch)) {
|
if (defined($format_patch)) {
|
||||||
print "foo\n";
|
|
||||||
return $format_patch;
|
return $format_patch;
|
||||||
}
|
}
|
||||||
die(<<EOF);
|
die(<<EOF);
|
||||||
|
|
|
@ -755,6 +755,11 @@ echo >>result
|
||||||
|
|
||||||
test_expect_success '--null --get-regexp' 'cmp result expect'
|
test_expect_success '--null --get-regexp' 'cmp result expect'
|
||||||
|
|
||||||
|
test_expect_success 'inner whitespace kept verbatim' '
|
||||||
|
git config section.val "foo bar" &&
|
||||||
|
test "z$(git config section.val)" = "zfoo bar"
|
||||||
|
'
|
||||||
|
|
||||||
test_expect_success SYMLINKS 'symlinked configuration' '
|
test_expect_success SYMLINKS 'symlinked configuration' '
|
||||||
|
|
||||||
ln -s notyet myconfig &&
|
ln -s notyet myconfig &&
|
||||||
|
|
Загрузка…
Ссылка в новой задаче