私はすべてのコミットのリストをa repositoryに、年初から取得したいと考えていました。私は明白なコマンドを使用してみましたが、それはそれらのいずれかが含まれていません。なぜgit log --sinceに私が期待しているコミットが含まれていないのですか?
$ git log --pretty='format:%h %ae %cI %s' [email protected] --since=2017-01-01 $
は奇妙なことに、私は私にそれらのいくつかを取得され、--since=2016-12-19
を使用する必要があります。
$ git log --pretty='format:%h %ae %cI %s' [email protected] --since=2016-12-20 $ git log --pretty='format:%h %ae %cI %s' [email protected] --since=2016-12-19 61569b5 [email protected] 2017-01-02T16:25:22+08:00 Bug 1324624 - Tweak stylo crashtest assertion annotations a bit more. 7fca5ff [email protected] 2016-12-29T16:32:01+08:00 Bug 1323892 - Followup to disable one more crashtest under stylo. cd875e7 [email protected] 2016-12-28T17:50:44+08:00 Bug 1326023 - Make Element::GetBindingURL return a strong reference. r=smaug 3c057d1 [email protected] 2017-01-02T15:44:23+08:00 Bug 1323717 - Re-enable 1290994-4.html. r=manishearth 7a45228 [email protected] 2016-12-28T17:50:44+08:00 Bug 1326023 - Make Element::GetBindingURL return a strong reference. r=smaug 171e45e [email protected] 2017-01-03T18:35:15+08:00 Bug 1328223 - stylo: Ignore invalid URLs from @import rules. r=emilio $
をしかし、それだけではありませんそれらの:
$ git log --pretty='format:%h %ae %cI %s' [email protected] | grep 2017- | wc -l 19
ここで何が起こっているの? --since
は、指定された日付よりも前の出力からコミットを削除する以外の何かをしますか?
'--since = 'midnight 2017-01-01'を使っても今年のコミットは表示されません。 – heycam
私は、どのタイムスタンプがチェックされているかをドキュメントでは分かりませんが、固定されていないかどうかはわかります。 – jthill
著者とコミット日付の違いを教えてくれてありがとう。私は 'git log --pretty = 'フォーマットをしました:%h%ae%aI%s' [email protected] | grep 2017- | wc -l'となり、2017年には印刷された日付で19のコミットが得られます。 – heycam