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

RE: one bug on git

From
LCLou, Pengfei (NSB - CN/Hangzhou) <pengfei.lou@nokia-sbell.com>
Date
Dec 3, 2019, 09:25 UTC
Message-ID
<0b2bd41ca3b34369ba0504e3bd7254ae@nokia-sbell.com>
In-Reply-To
<CAGyf7-Fn-XRQhGCLdr+WxBAWKywQH2_s8XCsNUG7Vpgyu2jjUg@mail.gmail.com>
I think it should be like below
[pelou@hzling29 try_des]$ git log --raw -1 --no-walk=unsorted 57cf56b8c1af9115a7f8e1c1c8f07e4d657e8b15^ 57cf56b8c1af9115a7f8e1c1c8f07e4d657e8b15
commit 57cf56b8c1af9115a7f8e1c1c8f07e4d657e8b15
Author: pelou <pengfei.lou@nokia-sbell.com>
Date:   Tue Dec 3 17:00:47 2019 +0800
    3
:100644 100644 9a7456b... 8148ef7... M  lpf
Br, Hercules
-----Original Message-----
From: Bryan Turner <bturner@atlassian.com> 
Sent: 2019年12月3日 17:22
To: Lou, Pengfei (NSB - CN/Hangzhou) <pengfei.lou@nokia-sbell.com>
Cc: git@vger.kernel.org
Subject: Re: one bug on git
On Tue, Dec 3, 2019 at 1:08 AM Lou, Pengfei (NSB - CN/Hangzhou) <pengfei.lou@nokia-sbell.com> wrote:
Show 33 quoted lines
>
> Hi
>    Thanks for your support
>
>     But your idea was still not working as my wanted , please check 
> the result below
>
> [pelou@hzling29 try_des]$ git log -1 --raw --no-walk=unsorted 
> 57cf56b8c1af9115a7f8e1c1c8f07e4d657e8b15^ 
> 57cf56b8c1af9115a7f8e1c1c8f07e4d657e8b15
> commit 9d00cc608993840e24f65c7b79ae10f85c2d72ff
> Author: pelou <pengfei.lou@nokia-sbell.com>
> Date:   Tue Dec 3 17:00:47 2019 +0800
>
>     2
>
> :100644 100644 d474e1b... 9a7456b... M  lpf
> [pelou@hzling29 try_des]$ git log --raw --no-walk=unsorted 
> 57cf56b8c1af9115a7f8e1c1c8f07e4d657e8b15^ 
> 57cf56b8c1af9115a7f8e1c1c8f07e4d657e8b15
> commit 9d00cc608993840e24f65c7b79ae10f85c2d72ff
> Author: pelou <pengfei.lou@nokia-sbell.com>
> Date:   Tue Dec 3 17:00:47 2019 +0800
>
>     2
>
> :100644 100644 d474e1b... 9a7456b... M  lpf
>
> commit 57cf56b8c1af9115a7f8e1c1c8f07e4d657e8b15
> Author: pelou <pengfei.lou@nokia-sbell.com>
> Date:   Tue Dec 3 17:00:47 2019 +0800
>
>     3

At this point I'm not sure what you're looking for. Your first command has -1 on it, so it only prints the commit for 57cf56b8c1af9115a7f8e1c1c8f07e4d657e8b15^, which is 9d00cc608993840e24f65c7b79ae10f85c2d72ff. Your second command omits the -1 and so it prints both 57cf56b8c1af9115a7f8e1c1c8f07e4d657e8b15^ (9d00cc608993840e24f65c7b79ae10f85c2d72ff) and 57cf56b8c1af9115a7f8e1c1c8f07e4d657e8b15--in the order you asked for them.

What output are you _expecting_ to see?
>
> So you mean it is not one bug /issue, and  adding delay was mandatory for this case? Actually , I found it was still be failure if the delay was set 0.5 seconds.
git commit records timestamps with second precision, so a delay of half a second means you can still have 2 commits recorded with identical _to the second_ timestamps.
Bryan
>
> tks
> Br, Hercules
P.S. Please don't top-post on the list. Respond inline adjacent to the part of the message you're talking about.
Previous: Bryan TurnerNext: Bryan Turner
Message 6 of 7 in “RE: one bug on git”
  1. Lou, Pengfei (NSB - CN/Hangzhou)Dec 3, 2019
  2. Lou, Pengfei (NSB - CN/Hangzhou)Dec 3, 2019
  3. Bryan TurnerDec 3, 2019
  4. Lou, Pengfei (NSB - CN/Hangzhou)Dec 3, 2019
  5. Bryan TurnerDec 3, 2019
  6. Lou, Pengfei (NSB - CN/Hangzhou)Dec 3, 2019
  7. Bryan TurnerDec 3, 2019

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.