Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
shifts timestamps of commits after the fact
Perl
Branch: master
Failed to load latest commit information.
LICENSE.txt 2015
README.md Introduce a left-open range denoted by `...`
git-shift Introduce a left-open range denoted by `...`

README.md

git-shift

Synopsis

  • git-shift - shifts timestamps of commits after the fact

Requirements

  • Perl >= 5.8

  • Time::Piece >= 1.16

    Only Perl >= 5.14 comes with a reasonably new version.

How to use

    usage: git shift [options] {[<time>][<timediff>][timezone]|<datetime>} <rev-list>...

        -v, --verbose         be verbose
        -n, --dry-run         dry run
        -k                    skip errors

        <time>                substitute this value for the time part(s) of
                              current commit time(s)
                              one of:
                                - "HH:MM:SS"
                                - "HH:MM" (= "HH:MM:00")

        <timediff>            add this time span to current commit time(s)
                              in regexp: /^[-+]([0-9]+[wdhms])+$/
                              e.g.
                                +1d -12h 30m -1h30m -600s

        <timezone>            in regexp: /^[-+][01][0-9][0-5][0-9]$/

        <datetime>            set this date time as commit time(s)
                              one of:
                                - ISO-8601 date time string
                                - date(1) format in C locale
                                - number of seconds since the Unix epoch

        <rev-list>            speficy commits to modify which must be on the
                              current branch; a single commit or a range of
                              commits: <committish1>..<committish2> denotes a
                              *closed* range, and <committish1>...<committish2>
                              denotes a *left-open* range

Author

Copyright (c) 2010-2015 Akinori MUSHA.

Licensed under the 2-clause BSD license. See LICENSE.txt for further details.

Something went wrong with that request. Please try again.