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

[PATCH 3/4] git-reflog.txt: Document new commands --updateref and --rewrite

From
drafnel@gmail.com <drafnel@gmail.com>
Date
Mar 2, 2008, 20:58 UTC
Message-ID
<15643506.1204491509692.JavaMail.teamon@b308.teamon.com>
In-Reply-To
<1204491531-29758-2-git-send-email-drafnel@gmail.com>
Signed-off-by: Brandon Casey <drafnel@gmail.com>
---
 Documentation/git-reflog.txt |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-reflog.txt b/Documentation/git-reflog.txt
index 5719039..047e3ce 100644
--- a/Documentation/git-reflog.txt
+++ b/Documentation/git-reflog.txt
@@ -80,6 +80,15 @@ them.
 --all::
 	Instead of listing <refs> explicitly, prune all refs.
 
+--updateref::
+	Update the ref with the sha1 of the top reflog entry (i.e.
+	<ref>@\{0\}) after expiring or deleting.
+
+--rewrite::
+	While expiring or deleting, adjust each reflog entry to ensure
+	that the `old` sha1 field points to the `new` sha1 field of the
+	previous entry.
+
 --verbose::
 	Print extra information on screen.
 
-- 
1.5.4.3.412.gcd100
Previous: drafnel@gmail.comNext: drafnel@gmail.com
Message 2 of 3 in “t3903-stash.sh: use test_must_fail instead of '!' notation”
  1. 2/4 t3903-stash.sh: use test_must_fail instead of '!' notationdrafnel@gmail.com, Mar 2, 2008
  2. 3/4 git-reflog.txt: Document new commands --updateref and --rewritedrafnel@gmail.com, Mar 2, 2008
  3. 4/4 t3903-stash.sh: Add tests for new stash commands drop and popdrafnel@gmail.com, Mar 2, 2008

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.