git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
f241f03ebea5527e1db530ec3121aa6e8b130743 blob 1410 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
alias.*::
	Command aliases for the linkgit:git[1] command wrapper - e.g.
	after defining `alias.last = cat-file commit HEAD`, the invocation
	`git last` is equivalent to `git cat-file commit HEAD`. To avoid
	confusion and troubles with script usage, aliases that
	hide existing Git commands are ignored. Arguments are split by
	spaces, the usual shell quoting and escaping is supported.
	A quote pair or a backslash can be used to quote them.
+
Note that the first word of an alias does not necessarily have to be a
command. It can be a command-line option that will be passed into the
invocation of `git`. In particular, this is useful when used with `-c`
to pass in one-time configurations. For example,
`loud-rebase = -c commit.verbose=true rebase` can be defined such that
running `git loud-merge` would be equivalent to
`git -c commit.verbose=true rebase`.
+
If the alias expansion is prefixed with an exclamation point,
it will be treated as a shell command.  For example, defining
`alias.new = !gitk --all --not ORIG_HEAD`, the invocation
`git new` is equivalent to running the shell command
`gitk --all --not ORIG_HEAD`.  Note that shell commands will be
executed from the top-level directory of a repository, which may
not necessarily be the current directory.
`GIT_PREFIX` is set as returned by running `git rev-parse --show-prefix`
from the original current directory. See linkgit:git-rev-parse[1].
debug log:

solving f241f03ebe ...
found f241f03ebe in https://public-inbox.org/git/13d9ddd3541e3815078c4853c6f7c25cddd89126.1559333840.git.liu.denton@gmail.com/
found 5425449a50 in https://80x24.org/mirrors/git.git
preparing index
index prepared:
100644 5425449a50954e3ea912c24a1eb83afeaf909e91	Documentation/config/alias.txt

applying [1/1] https://public-inbox.org/git/13d9ddd3541e3815078c4853c6f7c25cddd89126.1559333840.git.liu.denton@gmail.com/
diff --git a/Documentation/config/alias.txt b/Documentation/config/alias.txt
index 5425449a50..f241f03ebe 100644

Checking patch Documentation/config/alias.txt...
Applied patch Documentation/config/alias.txt cleanly.

index at:
100644 f241f03ebea5527e1db530ec3121aa6e8b130743	Documentation/config/alias.txt

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).