プロジェクト

全般

プロフィール

Vote #64068

完了

git repository browser uses author time instead of commit time for ordering

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
開始日:
2008/10/29
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
2
issue_org_id:
2108
author_id:
886
assigned_to_id:
0
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
5
ステータス-->[Closed]

説明

The git repository browser seems to be ordering commits using the "author" time instead of the "commit" time (git difference authoring and committing). It makes more sense to use the "commit" time (this is how git log and git web and other history viewers arrange patches).


journals

The date displayed by @git log@ command is used.
Eg:

<pre>
commit 61b685fbe55ab05b5ac68402d5720c1a6ac973d1
Author: jsmith <jsmith@foo.bar>
Date: 2007-12-14 16:15:51 +0100
</pre>

Where can I find the "commit time" ?
--------------------------------------------------------------------------------
You can use @git log --pretty=fuller@, for example (a commit with different @AuthorDate@ and @CommitDate@):

<pre>
commit c17203c111fde640e620095c1d93b42d460c73e4
Author: Leandro Lucarella <luca@7542.fi.uba.ar>
AuthorDate: Sun Oct 19 20:16:55 2008 -0200
Commit: Leandro Lucarella <luca@7542.fi.uba.ar>
CommitDate: Mon Oct 20 00:35:20 2008 -0200
</pre>

You can also do @git log --pretty=format:"%cd [hash]@ to get only the commit time of a single commit =)

You can see the man page with @git log --help@ if you need to easily get other commit info, the section called *PRETTY FORMATS* is the one with all the formatting specification.

Thank you.
--------------------------------------------------------------------------------
Fix committed in r1999.
--------------------------------------------------------------------------------
Thanks again =)
--------------------------------------------------------------------------------


related_issues

relates,New,11710,Git: Repository view author/date inconsistency
relates,New,5357,Git: SCM revisions ordered by date/time (should be reverse commit order)

Admin Redmine さんが3年以上前に更新

  • カテゴリSCM_3 にセット
  • 対象バージョン0.8_2 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0