mirror of
https://github.com/git/git.git
synced 2026-04-02 04:50:12 +02:00
Merge branch 'master' of git://repo.or.cz/alt-git
This commit is contained in:
@@ -180,9 +180,3 @@ v1.6.2.X series.
|
||||
|
||||
* git-gc spent excessive amount of time to decide if an object appears
|
||||
in a locally existing pack (if needed, backport by merging 69e020a).
|
||||
|
||||
---
|
||||
exec >/var/tmp/1
|
||||
O=v1.6.3-rc2
|
||||
echo O=$(git describe master)
|
||||
git shortlog --no-merges $O..master ^maint
|
||||
|
||||
@@ -32,7 +32,7 @@ OPTIONS
|
||||
|
||||
-s::
|
||||
--signoff::
|
||||
Add `Signed-off-by:` line to the commit message, using
|
||||
Add a `Signed-off-by:` line to the commit message, using
|
||||
the committer identity of yourself.
|
||||
|
||||
-k::
|
||||
@@ -79,14 +79,14 @@ default. You can use `--no-utf8` to override this.
|
||||
message as the commit author date, and uses the time of
|
||||
commit creation as the committer date. This allows the
|
||||
user to lie about the committer date by using the same
|
||||
timestamp as the author date.
|
||||
value as the author date.
|
||||
|
||||
--ignore-date::
|
||||
By default the command records the date from the e-mail
|
||||
message as the commit author date, and uses the time of
|
||||
commit creation as the committer date. This allows the
|
||||
user to lie about author timestamp by using the same
|
||||
timestamp as the committer date.
|
||||
user to lie about the author date by using the same
|
||||
value as the committer date.
|
||||
|
||||
--skip::
|
||||
Skip the current patch. This is only meaningful when
|
||||
@@ -115,21 +115,21 @@ DISCUSSION
|
||||
----------
|
||||
|
||||
The commit author name is taken from the "From: " line of the
|
||||
message, and commit author time is taken from the "Date: " line
|
||||
message, and commit author date is taken from the "Date: " line
|
||||
of the message. The "Subject: " line is used as the title of
|
||||
the commit, after stripping common prefix "[PATCH <anything>]".
|
||||
It is supposed to describe what the commit is about concisely as
|
||||
a one line text.
|
||||
The "Subject: " line is supposed to concisely describe what the
|
||||
commit is about in one line of text.
|
||||
|
||||
The body of the message (the rest of the message after the blank line
|
||||
that terminates the RFC2822 headers) can begin with "Subject: " and
|
||||
"From: " lines that are different from those of the mail header,
|
||||
to override the values of these fields.
|
||||
"From: " and "Subject: " lines starting the body (the rest of the
|
||||
message after the blank line terminating the RFC2822 headers)
|
||||
override the respective commit author name and title values taken
|
||||
from the headers.
|
||||
|
||||
The commit message is formed by the title taken from the
|
||||
"Subject: ", a blank line and the body of the message up to
|
||||
where the patch begins. Excess whitespace characters at the end of the
|
||||
lines are automatically stripped.
|
||||
where the patch begins. Excess whitespace at the end of each
|
||||
line is automatically stripped.
|
||||
|
||||
The patch is expected to be inline, directly following the
|
||||
message. Any line that is of the form:
|
||||
@@ -141,7 +141,7 @@ message. Any line that is of the form:
|
||||
is taken as the beginning of a patch, and the commit log message
|
||||
is terminated before the first occurrence of such a line.
|
||||
|
||||
When initially invoking it, you give it the names of the mailboxes
|
||||
When initially invoking `git am`, you give it the names of the mailboxes
|
||||
to process. Upon seeing the first patch that does not apply, it
|
||||
aborts in the middle. You can recover from this in one of two ways:
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@ SYNOPSIS
|
||||
DESCRIPTION
|
||||
-----------
|
||||
|
||||
This allows cleaning the working tree by removing files that are not
|
||||
under version control.
|
||||
Cleans the working tree by recursively removing files that are not
|
||||
under version control, starting from the current directory.
|
||||
|
||||
Normally, only files unknown to git are removed, but if the '-x'
|
||||
option is specified, ignored files are also removed. This can, for
|
||||
|
||||
@@ -43,9 +43,11 @@ unreleased) version of git, that is available from 'master'
|
||||
branch of the `git.git` repository.
|
||||
Documentation for older releases are available here:
|
||||
|
||||
* link:v1.6.2.3/git.html[documentation for release 1.6.2.3]
|
||||
* link:v1.6.3/git.html[documentation for release 1.6.3]
|
||||
|
||||
* release notes for
|
||||
link:RelNotes-1.6.2.5.txt[1.6.2.5],
|
||||
link:RelNotes-1.6.2.4.txt[1.6.2.4],
|
||||
link:RelNotes-1.6.2.3.txt[1.6.2.3],
|
||||
link:RelNotes-1.6.2.2.txt[1.6.2.2],
|
||||
link:RelNotes-1.6.2.1.txt[1.6.2.1],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
GVF=GIT-VERSION-FILE
|
||||
DEF_VER=v1.6.2.GIT
|
||||
DEF_VER=v1.6.3.GIT
|
||||
|
||||
LF='
|
||||
'
|
||||
|
||||
@@ -1116,6 +1116,7 @@ __git_log_shortlog_options="
|
||||
"
|
||||
|
||||
__git_log_pretty_formats="oneline short medium full fuller email raw format:"
|
||||
__git_log_date_formats="relative iso8601 rfc2822 short local default raw"
|
||||
|
||||
_git_log ()
|
||||
{
|
||||
@@ -1139,9 +1140,7 @@ _git_log ()
|
||||
return
|
||||
;;
|
||||
--date=*)
|
||||
__gitcomp "
|
||||
relative iso8601 rfc2822 short local default
|
||||
" "" "${cur##--date=}"
|
||||
__gitcomp "$__git_log_date_formats" "" "${cur##--date=}"
|
||||
return
|
||||
;;
|
||||
--*)
|
||||
@@ -1283,18 +1282,39 @@ _git_rebase ()
|
||||
__gitcomp "$(__git_refs)"
|
||||
}
|
||||
|
||||
__git_send_email_confirm_options="always never auto cc compose"
|
||||
__git_send_email_suppresscc_options="author self cc ccbody sob cccmd body all"
|
||||
|
||||
_git_send_email ()
|
||||
{
|
||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
case "$cur" in
|
||||
--confirm=*)
|
||||
__gitcomp "
|
||||
$__git_send_email_confirm_options
|
||||
" "" "${cur##--confirm=}"
|
||||
return
|
||||
;;
|
||||
--suppress-cc=*)
|
||||
__gitcomp "
|
||||
$__git_send_email_suppresscc_options
|
||||
" "" "${cur##--suppress-cc=}"
|
||||
|
||||
return
|
||||
;;
|
||||
--smtp-encryption=*)
|
||||
__gitcomp "ssl tls" "" "${cur##--smtp-encryption=}"
|
||||
return
|
||||
;;
|
||||
--*)
|
||||
__gitcomp "--annotate --bcc --cc --cc-cmd --chain-reply-to
|
||||
--compose --dry-run --envelope-sender --from --identity
|
||||
--compose --confirm= --dry-run --envelope-sender
|
||||
--from --identity
|
||||
--in-reply-to --no-chain-reply-to --no-signed-off-by-cc
|
||||
--no-suppress-from --no-thread --quiet
|
||||
--signed-off-by-cc --smtp-pass --smtp-server
|
||||
--smtp-server-port --smtp-ssl --smtp-user --subject
|
||||
--suppress-cc --suppress-from --thread --to
|
||||
--smtp-server-port --smtp-encryption= --smtp-user
|
||||
--subject --suppress-cc= --suppress-from --thread --to
|
||||
--validate --no-validate"
|
||||
return
|
||||
;;
|
||||
@@ -1348,6 +1368,26 @@ _git_config ()
|
||||
"
|
||||
return
|
||||
;;
|
||||
help.format)
|
||||
__gitcomp "man info web html"
|
||||
return
|
||||
;;
|
||||
log.date)
|
||||
__gitcomp "$__git_log_date_formats"
|
||||
return
|
||||
;;
|
||||
sendemail.aliasesfiletype)
|
||||
__gitcomp "mutt mailrc pine elm gnus"
|
||||
return
|
||||
;;
|
||||
sendemail.confirm)
|
||||
__gitcomp "$__git_send_email_confirm_options"
|
||||
return
|
||||
;;
|
||||
sendemail.suppresscc)
|
||||
__gitcomp "$__git_send_email_suppresscc_options"
|
||||
return
|
||||
;;
|
||||
*.*)
|
||||
COMPREPLY=()
|
||||
return
|
||||
@@ -1376,6 +1416,39 @@ _git_config ()
|
||||
__gitcomp "$(__git_heads)" "$pfx" "$cur" "."
|
||||
return
|
||||
;;
|
||||
guitool.*.*)
|
||||
local pfx="${cur%.*}."
|
||||
cur="${cur##*.}"
|
||||
__gitcomp "
|
||||
argprompt cmd confirm needsfile noconsole norescan
|
||||
prompt revprompt revunmerged title
|
||||
" "$pfx" "$cur"
|
||||
return
|
||||
;;
|
||||
difftool.*.*)
|
||||
local pfx="${cur%.*}."
|
||||
cur="${cur##*.}"
|
||||
__gitcomp "cmd path" "$pfx" "$cur"
|
||||
return
|
||||
;;
|
||||
man.*.*)
|
||||
local pfx="${cur%.*}."
|
||||
cur="${cur##*.}"
|
||||
__gitcomp "cmd path" "$pfx" "$cur"
|
||||
return
|
||||
;;
|
||||
mergetool.*.*)
|
||||
local pfx="${cur%.*}."
|
||||
cur="${cur##*.}"
|
||||
__gitcomp "cmd path trustExitCode" "$pfx" "$cur"
|
||||
return
|
||||
;;
|
||||
pager.*)
|
||||
local pfx="${cur%.*}."
|
||||
cur="${cur#*.}"
|
||||
__gitcomp "$(__git_all_commands)" "$pfx" "$cur"
|
||||
return
|
||||
;;
|
||||
remote.*.*)
|
||||
local pfx="${cur%.*}."
|
||||
cur="${cur##*.}"
|
||||
@@ -1391,8 +1464,15 @@ _git_config ()
|
||||
__gitcomp "$(__git_remotes)" "$pfx" "$cur" "."
|
||||
return
|
||||
;;
|
||||
url.*.*)
|
||||
local pfx="${cur%.*}."
|
||||
cur="${cur##*.}"
|
||||
__gitcomp "insteadof" "$pfx" "$cur"
|
||||
return
|
||||
;;
|
||||
esac
|
||||
__gitcomp "
|
||||
alias.
|
||||
apply.whitespace
|
||||
branch.autosetupmerge
|
||||
branch.autosetuprebase
|
||||
@@ -1410,6 +1490,9 @@ _git_config ()
|
||||
color.diff.old
|
||||
color.diff.plain
|
||||
color.diff.whitespace
|
||||
color.grep
|
||||
color.grep.external
|
||||
color.grep.match
|
||||
color.interactive
|
||||
color.interactive.header
|
||||
color.interactive.help
|
||||
@@ -1427,6 +1510,7 @@ _git_config ()
|
||||
core.autocrlf
|
||||
core.bare
|
||||
core.compression
|
||||
core.createObject
|
||||
core.deltaBaseCacheLimit
|
||||
core.editor
|
||||
core.excludesfile
|
||||
@@ -1457,11 +1541,21 @@ _git_config ()
|
||||
diff.renameLimit
|
||||
diff.renameLimit.
|
||||
diff.renames
|
||||
diff.suppressBlankEmpty
|
||||
diff.tool
|
||||
diff.wordRegex
|
||||
difftool.
|
||||
difftool.prompt
|
||||
fetch.unpackLimit
|
||||
format.attach
|
||||
format.cc
|
||||
format.headers
|
||||
format.numbered
|
||||
format.pretty
|
||||
format.signoff
|
||||
format.subjectprefix
|
||||
format.suffix
|
||||
format.thread
|
||||
gc.aggressiveWindow
|
||||
gc.auto
|
||||
gc.autopacklimit
|
||||
@@ -1472,6 +1566,7 @@ _git_config ()
|
||||
gc.rerereresolved
|
||||
gc.rerereunresolved
|
||||
gitcvs.allbinary
|
||||
gitcvs.commitmsgannotation
|
||||
gitcvs.dbTableNamePrefix
|
||||
gitcvs.dbdriver
|
||||
gitcvs.dbname
|
||||
@@ -1480,6 +1575,7 @@ _git_config ()
|
||||
gitcvs.enabled
|
||||
gitcvs.logfile
|
||||
gitcvs.usecrlfattr
|
||||
guitool.
|
||||
gui.blamehistoryctx
|
||||
gui.commitmsgwidth
|
||||
gui.copyblamethreshold
|
||||
@@ -1506,13 +1602,24 @@ _git_config ()
|
||||
http.sslVerify
|
||||
i18n.commitEncoding
|
||||
i18n.logOutputEncoding
|
||||
imap.folder
|
||||
imap.host
|
||||
imap.pass
|
||||
imap.port
|
||||
imap.preformattedHTML
|
||||
imap.sslverify
|
||||
imap.tunnel
|
||||
imap.user
|
||||
instaweb.browser
|
||||
instaweb.httpd
|
||||
instaweb.local
|
||||
instaweb.modulepath
|
||||
instaweb.port
|
||||
interactive.singlekey
|
||||
log.date
|
||||
log.showroot
|
||||
mailmap.file
|
||||
man.
|
||||
man.viewer
|
||||
merge.conflictstyle
|
||||
merge.log
|
||||
@@ -1520,7 +1627,9 @@ _git_config ()
|
||||
merge.stat
|
||||
merge.tool
|
||||
merge.verbosity
|
||||
mergetool.
|
||||
mergetool.keepBackup
|
||||
mergetool.prompt
|
||||
pack.compression
|
||||
pack.deltaCacheLimit
|
||||
pack.deltaCacheSize
|
||||
@@ -1530,8 +1639,11 @@ _git_config ()
|
||||
pack.threads
|
||||
pack.window
|
||||
pack.windowMemory
|
||||
pager.
|
||||
pull.octopus
|
||||
pull.twohead
|
||||
push.default
|
||||
rebase.stat
|
||||
receive.denyCurrentBranch
|
||||
receive.denyDeletes
|
||||
receive.denyNonFastForwards
|
||||
@@ -1540,11 +1652,32 @@ _git_config ()
|
||||
repack.usedeltabaseoffset
|
||||
rerere.autoupdate
|
||||
rerere.enabled
|
||||
sendemail.aliasesfile
|
||||
sendemail.aliasesfiletype
|
||||
sendemail.bcc
|
||||
sendemail.cc
|
||||
sendemail.cccmd
|
||||
sendemail.chainreplyto
|
||||
sendemail.confirm
|
||||
sendemail.envelopesender
|
||||
sendemail.multiedit
|
||||
sendemail.signedoffbycc
|
||||
sendemail.smtpencryption
|
||||
sendemail.smtppass
|
||||
sendemail.smtpserver
|
||||
sendemail.smtpserverport
|
||||
sendemail.smtpuser
|
||||
sendemail.suppresscc
|
||||
sendemail.suppressfrom
|
||||
sendemail.thread
|
||||
sendemail.to
|
||||
sendemail.validate
|
||||
showbranch.default
|
||||
status.relativePaths
|
||||
status.showUntrackedFiles
|
||||
tar.umask
|
||||
transfer.unpackLimit
|
||||
url.
|
||||
user.email
|
||||
user.name
|
||||
user.signingkey
|
||||
|
||||
4
date.c
4
date.c
@@ -871,13 +871,15 @@ unsigned long approxidate(const char *date)
|
||||
int number = 0;
|
||||
struct tm tm, now;
|
||||
struct timeval tv;
|
||||
time_t time_sec;
|
||||
char buffer[50];
|
||||
|
||||
if (parse_date(date, buffer, sizeof(buffer)) > 0)
|
||||
return strtoul(buffer, NULL, 10);
|
||||
|
||||
gettimeofday(&tv, NULL);
|
||||
localtime_r(&tv.tv_sec, &tm);
|
||||
time_sec = tv.tv_sec;
|
||||
localtime_r(&time_sec, &tm);
|
||||
now = tm;
|
||||
for (;;) {
|
||||
unsigned char c = *date;
|
||||
|
||||
4
dir.c
4
dir.c
@@ -53,7 +53,7 @@ int common_prefix(const char **pathspec)
|
||||
}
|
||||
|
||||
/*
|
||||
* Does 'match' matches the given name?
|
||||
* Does 'match' match the given name?
|
||||
* A match is found if
|
||||
*
|
||||
* (1) the 'match' string is leading directory of 'name', or
|
||||
@@ -290,7 +290,7 @@ static void prep_exclude(struct dir_struct *dir, const char *base, int baselen)
|
||||
dir->basebuf[baselen] = '\0';
|
||||
}
|
||||
|
||||
/* Scan the list and let the last match determines the fate.
|
||||
/* Scan the list and let the last match determine the fate.
|
||||
* Return 1 for exclude, 0 for include and -1 for undecided.
|
||||
*/
|
||||
static int excluded_1(const char *pathname,
|
||||
|
||||
@@ -147,7 +147,7 @@ my %cmd = (
|
||||
'dry-run|n' => \$_dry_run } ],
|
||||
'set-tree' => [ \&cmd_set_tree,
|
||||
"Set an SVN repository to a git tree-ish",
|
||||
{ 'stdin|' => \$_stdin, %cmt_opts, %fc_opts, } ],
|
||||
{ 'stdin' => \$_stdin, %cmt_opts, %fc_opts, } ],
|
||||
'create-ignore' => [ \&cmd_create_ignore,
|
||||
'Create a .gitignore per svn:ignore',
|
||||
{ 'revision|r=i' => \$_revision
|
||||
|
||||
@@ -114,7 +114,10 @@ test_expect_success \
|
||||
test_expect_success \
|
||||
'some edit' \
|
||||
'mv file file.orig &&
|
||||
sed -e "s/^3A/99/" -e "/^1A/d" -e "/^incomplete/d" < file.orig > file &&
|
||||
{
|
||||
cat file.orig &&
|
||||
echo
|
||||
} | sed -e "s/^3A/99/" -e "/^1A/d" -e "/^incomplete/d" > file &&
|
||||
echo "incomplete" | tr -d "\\012" >>file &&
|
||||
GIT_AUTHOR_NAME="D" git commit -a -m "edit"'
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ EOF
|
||||
|
||||
sed 's/beer\\/beer,\\/' < Beer.java > Beer-correct.java
|
||||
|
||||
builtin_patterns="bibtex html java objc pascal php python ruby tex"
|
||||
builtin_patterns="bibtex cpp html java objc pascal php python ruby tex"
|
||||
for p in $builtin_patterns
|
||||
do
|
||||
test_expect_success "builtin $p pattern compiles" '
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) Jim Meyering
|
||||
#
|
||||
|
||||
@@ -20,10 +20,10 @@ test_expect_success setup '
|
||||
cat file1 &&
|
||||
echo Q | tr -d "\\012"
|
||||
} >file2 &&
|
||||
cat file2 >file2.orig
|
||||
cat file2 >file2.orig &&
|
||||
git add file1 file2 &&
|
||||
sed -e "/^B/d" <file1.orig >file1 &&
|
||||
sed -e "/^[BQ]/d" <file2.orig >file2 &&
|
||||
cat file1 > file2 &&
|
||||
echo Q | tr -d "\\012" >>file2 &&
|
||||
cat file1 >file1.mods &&
|
||||
cat file2 >file2.mods &&
|
||||
|
||||
@@ -57,7 +57,7 @@ test_expect_success 'conflicting merge' '
|
||||
test_must_fail git merge first
|
||||
'
|
||||
|
||||
sha1=$(sed -e 's/ .*//' .git/MERGE_RR)
|
||||
sha1=$(perl -pe 's/ .*//' .git/MERGE_RR)
|
||||
rr=.git/rr-cache/$sha1
|
||||
test_expect_success 'recorded preimage' "grep ^=======$ $rr/preimage"
|
||||
|
||||
@@ -190,8 +190,6 @@ test_expect_success 'file2 added differently in two branches' '
|
||||
git add file2 &&
|
||||
git commit -m version2 &&
|
||||
test_must_fail git merge fourth &&
|
||||
sha1=$(sed -e "s/ .*//" .git/MERGE_RR) &&
|
||||
rr=.git/rr-cache/$sha1 &&
|
||||
echo Cello > file2 &&
|
||||
git add file2 &&
|
||||
git commit -m resolution
|
||||
|
||||
@@ -36,7 +36,7 @@ EOF
|
||||
test_expect_success \
|
||||
'blame respects i18n.commitencoding' '
|
||||
git blame --incremental file | \
|
||||
grep "^\(author\|summary\) " > actual &&
|
||||
egrep "^(author|summary) " > actual &&
|
||||
test_cmp actual expected
|
||||
'
|
||||
|
||||
@@ -53,7 +53,7 @@ test_expect_success \
|
||||
'blame respects i18n.logoutputencoding' '
|
||||
git config i18n.logoutputencoding cp1251 &&
|
||||
git blame --incremental file | \
|
||||
grep "^\(author\|summary\) " > actual &&
|
||||
egrep "^(author|summary) " > actual &&
|
||||
test_cmp actual expected
|
||||
'
|
||||
|
||||
@@ -69,7 +69,7 @@ EOF
|
||||
test_expect_success \
|
||||
'blame respects --encoding=utf-8' '
|
||||
git blame --incremental --encoding=utf-8 file | \
|
||||
grep "^\(author\|summary\) " > actual &&
|
||||
egrep "^(author|summary) " > actual &&
|
||||
test_cmp actual expected
|
||||
'
|
||||
|
||||
@@ -85,7 +85,7 @@ EOF
|
||||
test_expect_success \
|
||||
'blame respects --encoding=none' '
|
||||
git blame --incremental --encoding=none file | \
|
||||
grep "^\(author\|summary\) " > actual &&
|
||||
egrep "^(author|summary) " > actual &&
|
||||
test_cmp actual expected
|
||||
'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user