mirror of
https://github.com/git/git.git
synced 2026-03-14 02:43:25 +01:00
Merge branch 'master' into next
* master: Documentation/urls.txt: Use substitution to escape square brackets Documentation/Makefile: product depends on asciidoc.conf Fix "git-fetch --tags" exit status when nothing has been changed argv created by handle_alias should be NULL terminated documentation (urls.txt) typofix
This commit is contained in:
@@ -46,6 +46,7 @@ all: html man
|
||||
|
||||
html: $(DOC_HTML)
|
||||
|
||||
$(DOC_HTML) $(DOC_MAN1) $(DOC_MAN7): asciidoc.conf
|
||||
|
||||
man: man1 man7
|
||||
man1: $(DOC_MAN1)
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
|
||||
[attributes]
|
||||
caret=^
|
||||
startsb=[
|
||||
endsb=]
|
||||
|
||||
ifdef::backend-docbook[]
|
||||
[gitlink-inlinemacro]
|
||||
|
||||
@@ -10,20 +10,21 @@ to name the remote repository:
|
||||
- https://host.xz/path/to/repo.git/
|
||||
- git://host.xz/path/to/repo.git/
|
||||
- git://host.xz/~user/path/to/repo.git/
|
||||
- ssh://+++[user@+++]host.xz/path/to/repo.git/
|
||||
- ssh://+++[user@+++]host.xz/~user/path/to/repo.git/
|
||||
- ssh://+++[user@+++]host.xz/~/path/to/repo.git
|
||||
- ssh://{startsb}user@{endsb}host.xz/path/to/repo.git/
|
||||
- ssh://{startsb}user@{endsb}host.xz/~user/path/to/repo.git/
|
||||
- ssh://{startsb}user@{endsb}host.xz/~/path/to/repo.git
|
||||
===============================================================
|
||||
|
||||
SSH Is the default transport protocol and also supports an
|
||||
scp-like syntax. Both syntaxes support username expansion,
|
||||
SSH is the default transport protocol. You can optionally specify
|
||||
which user to log-in as, and an alternate, scp-like syntax is also
|
||||
supported. Both syntaxes support username expansion,
|
||||
as does the native git protocol. The following three are
|
||||
identical to the last three above, respectively:
|
||||
|
||||
===============================================================
|
||||
- host.xz:/path/to/repo.git/
|
||||
- host.xz:~user/path/to/repo.git/
|
||||
- host.xz:path/to/repo.git
|
||||
- {startsb}user@{endsb}host.xz:/path/to/repo.git/
|
||||
- {startsb}user@{endsb}host.xz:~user/path/to/repo.git/
|
||||
- {startsb}user@{endsb}host.xz:path/to/repo.git
|
||||
===============================================================
|
||||
|
||||
To sync with a local directory, use:
|
||||
|
||||
@@ -153,7 +153,7 @@ fast_forward_local () {
|
||||
then
|
||||
if now_=$(cat "$GIT_DIR/$1") && test "$now_" = "$2"
|
||||
then
|
||||
[ "$verbose" ] && echo >&2 "* $1: same as $3"
|
||||
[ "$verbose" ] && echo >&2 "* $1: same as $3" ||:
|
||||
else
|
||||
echo >&2 "* $1: updating with $3"
|
||||
git-update-ref -m "$rloga: updating tag" "$1" "$2"
|
||||
|
||||
11
git.c
11
git.c
@@ -133,13 +133,12 @@ static int handle_alias(int *argcp, const char ***argv)
|
||||
fflush(stderr);
|
||||
}
|
||||
|
||||
new_argv = realloc(new_argv, sizeof(char*) *
|
||||
(count + *argcp + 1));
|
||||
/* insert after command name */
|
||||
if (*argcp > 1) {
|
||||
new_argv = realloc(new_argv, sizeof(char*) *
|
||||
(count + *argcp));
|
||||
memcpy(new_argv + count, *argv + 1,
|
||||
sizeof(char*) * *argcp);
|
||||
}
|
||||
memcpy(new_argv + count, *argv + 1,
|
||||
sizeof(char*) * *argcp);
|
||||
new_argv[count+*argcp] = NULL;
|
||||
|
||||
*argv = new_argv;
|
||||
*argcp += count - 1;
|
||||
|
||||
Reference in New Issue
Block a user