git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Documentation: update description of shell aliases

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
Jul 1, 2009, 16:00 UTC
Message-ID
<2e24e5b90907010900r23ddc8dfl67dee569b508a4b7@mail.gmail.com>

Aliases that invoke shell commands start from the top-level directory, but this was not documented.

Signed-off-by: Sitaram Chamarty <sitaramc@gmail.com>
---
 Documentation/config.txt |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 2fecbe3..bf97e1d 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -456,7 +456,9 @@ 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".
+"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.

 apply.whitespace::
 	Tells 'git-apply' how to handle whitespaces, in the same way
-- 
1.6.3.3
Next: Junio C Hamano
Message 1 of 4 in “Documentation: update description of shell aliases”
  1. Documentation: update description of shell aliasesSitaram Chamarty, Jul 1, 2009
  2. Junio C HamanoJul 1, 2009
  3. Sitaram ChamartyJul 2, 2009
  4. Andreas EricssonJul 2, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.