Skip to content
Sections
>> Trisquel >> 套件 >> etiona >> vcs >> git-restore-mtime
etiona  ] [  nabia  ] [  aramo  ]
[ 原始碼: git-mestrelion-tools  ]

套件: git-restore-mtime (2017.10-1)

set timestamps to the date of a file's last commit

This utility can set timestamps in a git checkout to the last commit that changes a given file. This is useful whenever meaningful mtimes are wanted, as "last change" is better than "last checkout". Use cases include syncing timestamps on a web server's contents, preparing a release tarball, etc. Pretty much, every scenario other than an unclean source tree where you're about to type "make" without "make clean".

When called from a .git/hooks/post-checkout trigger, this is the equivalent of Subversion's "use-commit-times".

Unlike metastore, git restore-mtime gives you only commit times rather than the true original timestamp; on the other hand it works retroactively and doesn't require a manual action by every contributor in every working copy.

This package includes three other utilities:

 * git clone-subset - clones only some files from a repository (inc. history)
 * git find-uncommitted-repos - recursively searches for unclean git repos
 * git strip-merge - filters away some files during a merge

其他與 git-restore-mtime 有關的套件

  • 依賴
  • 推薦
  • 建議
  • dep: git
    fast, scalable, distributed revision control system
  • dep: python3
    interactive high-level object-oriented language (default python3 version)

下載 git-restore-mtime

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 15.4 kB49 kB [文件列表]