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

Re: [BUG] git log --walk-reflogs --pretty=oneline --all

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 3, 2008, 21:01 UTC
Message-ID
<alpine.DEB.1.00.0811032158540.24407@pacific.mpi-cbg.de>
In-Reply-To
<ee2a733e0810300819r373ce1eeta335a39a0fcb77df@mail.gmail.com>
Hi,
On Thu, 30 Oct 2008, Leo Razoumov wrote:
Show 5 quoted lines
> Take a test repository that already has several commits in it, do the 
> following and watch the results:
> 
> sh$ git reflog expire --expire=1.second.ago --all
> sh$ git log --walk-reflogs --pretty=oneline --all
Like so?
-- snip --
diff --git a/t/t1410-reflog.sh b/t/t1410-reflog.sh
index 5b24f05..d253067 100755
--- a/t/t1410-reflog.sh
+++ b/t/t1410-reflog.sh
@@ -216,4 +216,11 @@ test_expect_success 'delete' '
 
 '
 
+test_expect_success 'expired' '
+
+	git reflog expire --expire=1.second.ago --all &&
+	git log --walk-reflogs --pretty=oneline --all
+
+'
+
 test_done
-- snap --

> I am using git-1.6.0.2 and that's what I get
> 
> sh$ git reflog expire --expire=1.second.ago --all
> sh$ git log --walk-reflogs --pretty=oneline --all
> 60684d9df4193d91ef679173ef211275b9ad457f
> 810948facab2268139a1d4aac1368282e5ef1a9a
> 56f321d71b1bf6180977e9e3ff23836350ea2921 020
> 9e7f5cfb0fa20c44747f3d9111ccf161a2892
> 6160d0084fb8b02c3c1b5f1dd835d921d53ec86a
> 84de8b17fcab52a9c00587b81eb043c8614b37c5 68762f
> c23396e88e8ef8a1497d4f340a1bd69fa4
> 96bb86bfdd5f506ef233608c2ca8d58a13c834dd
> 287c7e907cd41dba25454d5708262e73a80c2bbb 2fcde3a98
> 09755d33f4b4093b1f2ef319f7ebe36
> 8e5b9847a38905e9d921d231c712c54720a4de5a
> 6ecfbc2bde9b771fba56d4b85ad2952b4fe0405c 0b71dc288ac2
> af4a2670e608c22e26beee272fd0 455601d6f414e400bfabb6410074b6ebee2696e0
> e78e5c0b98dfd44cc9e1e5d56a1e094d295a7c97
> 
> First of all, this log's content is next to zero. Secondly, all
> reflogs are already empty and I expected no output at all.

Well, in my test there was no output at all.  Just as expected.

Maybe you can come up with a test script that reproduces your claims?  But 
maybe your Git version is substantially different from mine?  Mine is 
1.6.0.2.763.g72663.

Ciao,
Dscho
Previous: Leo Razoumov
Message 2 of 2 in “[BUG] git log --walk-reflogs --pretty=oneline --all”
  1. Leo RazoumovOct 30, 2008
  2. Johannes SchindelinNov 3, 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.