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

[PATCH 3/3] bash completion: log --date, --no-date and --date=normal

From
Thomas Rast <trast@student.ethz.ch>
Date
Jul 28, 2009, 08:40 UTC
Message-ID
<81549fbc4542ee9a2ff1f3d216e3e592d30512b3.1248770042.git.trast@student.ethz.ch>
In-Reply-To
<1e2f7d731286d99b74cc9af37beb5fe187e9d460.1248770042.git.trast@student.ethz.ch>

The preceding patches made the argument to --date optional and introduced --date=normal and --no-date. Teach the bash completion about this.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
---
 contrib/completion/git-completion.bash |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 745b5fb..4ddeacf 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1143,7 +1143,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_date_formats="relative iso8601 rfc2822 short local default raw normal"
 
 _git_log ()
 {
@@ -1178,7 +1178,7 @@ _git_log ()
 			--root --topo-order --date-order --reverse
 			--follow --full-diff
 			--abbrev-commit --abbrev=
-			--relative-date --date=
+			--relative-date --date= --date --no-date
 			--pretty= --format= --oneline
 			--cherry-pick
 			--graph
-- 
1.6.4.rc3.218.gb7ac
Previous: Thomas RastNext: Johannes Schindelin
Message 3 of 10 in “log: Show reflog date with --date=normal”
  1. 1/3 log: Show reflog date with --date=normalThomas Rast, Jul 28, 2009
  2. 2/3 log: --date and --no-date to toggle reflog datesThomas Rast, Jul 28, 2009
  3. 3/3 bash completion: log --date, --no-date and --date=normalThomas Rast, Jul 28, 2009
  4. Johannes SchindelinJul 28, 2009
  5. Johannes SchindelinJul 28, 2009
  6. Thomas RastJul 28, 2009
  7. Johannes SchindelinJul 28, 2009
  8. Thomas RastJul 28, 2009
  9. Johannes SchindelinJul 28, 2009
  10. Junio C HamanoJul 28, 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.