threads / bug / 16096

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

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

## tl;dr

2 messages between Oct 30, 2008 and Nov 3, 2008.

replies: 1people: 2as markdown or json

Leo Razoumov· Oct 30, 2008, 15:19 UTC · lore

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

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.

--Leo--
Johannes Schindelin· Nov 3, 2008, 21:01 UTC · re: Leo Razoumov · lore

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

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

← back to recent threads