git-set-mtime icon indicating copy to clipboard operation
git-set-mtime copied to clipboard

set files mtime by latest commit time.

Results 7 git-set-mtime issues
Sort by recently updated
recently updated
newest added

Hi, The commit 9606f351 by Dan Kubb fixes time stamp issue so that I hope v0.0.3 gem be released. Regards.

The commit date is closer to the concept of `mtime`, and is the date used by the go implementation. Fixes https://github.com/rosylilly/git-set-mtime/issues/10

https://github.com/rosylilly/git-set-mtime/pull/2 added format "`%cd`", which is `CommitDate`, to the golang https://github.com/rosylilly/git-set-mtime/pull/5 added format "`%ad`", which is `AuthorDate`, to the ruby

I get an error on https://gitlab.com/ciptamedia/ciptamedia-dev.gitlab.io/blob/a79291ff5/_posts/2013-03-09-Launching-Antologi-%E2%80%9CAmarah%E2%80%9D.markdown , on Linux ``` /home/jayvdb/.rbenv/versions/2.4.3/lib/ruby/2.4.0/time.rb:254:in `make_time' /home/jayvdb/.rbenv/versions/2.4.3/lib/ruby/2.4.0/time.rb:370:in `parse' /home/jayvdb/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/bundler/gems/git-set-mtime-485263aba2b6/lib/git/set/mtime.rb:19:in `block in apply' /home/jayvdb/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/bundler/gems/git-set-mtime-485263aba2b6/lib/git/set/mtime.rb:13:in `each_line' /home/jayvdb/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/bundler/gems/git-set-mtime-485263aba2b6/lib/git/set/mtime.rb:13:in `apply' /home/jayvdb/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run' /home/jayvdb/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command' /home/jayvdb/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch' /home/jayvdb/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'...

I only need the mtimes to be accurate for some parts of the repository, and there are some large directories that I definitely do not want it to descend.

``` ⋊> ~/pbx on docker ◦ gem install --user-install git-set-mtime ... ⋊> ~/pbx on docker ◦ ~/.gem/ruby/2.0.0/bin/git-set-mtime /Users/dima/.gem/ruby/2.0.0/gems/git-set-mtime-0.0.2/lib/git/set/mtime.rb:9: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 32813-04-23 00:00:00...

MacOS ``` ⋊> ~/pbx on docker ◦ go get github.com/rosylilly/git-set-mtime 14:36:08 # github.com/rosylilly/git-set-mtime ../go/src/github.com/rosylilly/git-set-mtime/main.go:22: undefined: unix.UtimesNanoAt ```