{"thread":{"id":"55506","subject":"If the initial commit is empty, it is not shown in \"git log --simplify-by-decoration\"","startedAt":"2021-04-16T23:59:00Z","lastAt":"2021-04-18T08:59:08Z","messageCount":2,"participants":["Matthew Timothy Kennerly","Bagas Sanjaya"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"422138","messageId":"CAKqNo6TFudrXnuPzQcOaVQrRpq_0K_fxyyMA5god-WQL7y=RcQ@mail.gmail.com","threadId":"55506","inReplyTo":null,"subject":"If the initial commit is empty, it is not shown in \"git log --simplify-by-decoration\"","fromName":"Matthew Timothy Kennerly","fromEmail":"mtkennerly@gmail.com","sentAt":"2021-04-16T23:58:43Z","receivedAt":"2021-04-16T23:59:00Z","isPatch":false,"sender":{"key":"mtkennerly@gmail.com","avatar":null},"body":"Hello,\n\nThis seems like a bug to me, but maybe there's a good reason for it. I\nreproduced it using Git 2.27.0 on Windows initially, and then I\nupgraded to 2.31.1 to confirm that it was still present.\n\nAfter committing with \"--allow-empty\", the initial commit is not shown\nin \"git log --simplify-by-decoration\", although it is shown with \"git\nlog\". I would have expected it to be shown in both cases:\n\n---\n$ git init\nInitialized empty Git repository in C:/tmp/repro/.git/\n\n$ git commit --allow-empty -m init\n[master (root-commit) bc54978] init\n\n$ git log --simplify-by-decoration\n\n$ git log\ncommit d7814029effeb7e824e480ca52e30f5a9d1e8058 (HEAD -> master)\nAuthor: mtkennerly <mtkennerly@gmail.com>\nDate:   Fri Apr 16 19:48:06 2021 -0400\n\n    init\n---\n\nHowever, if the first commit is not empty, then it is shown with or\nwithout \"--simplify-by-decoration\", as expected:\n\n---\n$ git init\nInitialized empty Git repository in C:/tmp/repro2/.git/\n\n$ echo hi > foo.txt\n\n$ git add .\n\n$ git commit -m init\n[master (root-commit) 35b6427] init\n 1 file changed, 1 insertion(+)\n create mode 100644 foo.txt\n\n$ git log --simplify-by-decoration\ncommit 35b6427461fe48c0e918dfea2bc5ddab9dc8844d (HEAD -> master)\nAuthor: mtkennerly <mtkennerly@gmail.com>\nDate:   Fri Apr 16 19:51:06 2021 -0400\n\n    init\n\n$ git log\ncommit 35b6427461fe48c0e918dfea2bc5ddab9dc8844d (HEAD -> master)\nAuthor: mtkennerly <mtkennerly@gmail.com>\nDate:   Fri Apr 16 19:51:06 2021 -0400\n\n    init\n---\n\nFor context, this was reported to me on GitHub here:\nhttps://github.com/mtkennerly/dunamai/issues/14\n\nRegards,\n\nMTK\n"},{"id":"422206","messageId":"f24b8f44-b89e-7e11-c2b1-85b40f1e996e@gmail.com","threadId":"55506","inReplyTo":"CAKqNo6TFudrXnuPzQcOaVQrRpq_0K_fxyyMA5god-WQL7y=RcQ@mail.gmail.com","subject":"Re: If the initial commit is empty, it is not shown in \"git log --simplify-by-decoration\"","fromName":"Bagas Sanjaya","fromEmail":"bagasdotme@gmail.com","sentAt":"2021-04-18T08:59:01Z","receivedAt":"2021-04-18T08:59:08Z","isPatch":false,"sender":{"key":"bagasdotme@gmail.com","avatar":"https://avatars.githubusercontent.com/u/40219486?v=4"},"body":"On 17/04/21 06.58, Matthew Timothy Kennerly wrote:\n> Hello,\n> \n> This seems like a bug to me, but maybe there's a good reason for it. I\n> reproduced it using Git 2.27.0 on Windows initially, and then I\n> upgraded to 2.31.1 to confirm that it was still present.\n> \n> After committing with \"--allow-empty\", the initial commit is not shown\n> in \"git log --simplify-by-decoration\", although it is shown with \"git\n> log\". I would have expected it to be shown in both cases:\n> \n> However, if the first commit is not empty, then it is shown with or\n> without \"--simplify-by-decoration\", as expected:\n> \n> For context, this was reported to me on GitHub here:\n> https://github.com/mtkennerly/dunamai/issues/14\n> \n> Regards,\n> \n> MTK\n> \n[CC] Junio, what do you think about the issue?\n\n-- \nAn old man doll... just what I always wanted! - Clara\n"}]}