# git reflog --date

3 messages from 2020-08-12 to 2020-08-12. Participants: Craig H Maynard, Jeff King.
Thread: https://gitlist.dev/t/54022

## Craig H Maynard, 2020-08-12 00:28

Subject: git reflog --date
Message-ID: <730B4EB4-AA72-4097-9487-D6B8623BB8E5@me.com>
URL: https://gitlist.dev/e/730B4EB4-AA72-4097-9487-D6B8623BB8E5%40me.com

```
All,

I'm using git version 2.28.0. I don't see any mention of this 'git reflog' option in the online Git docs:

git reflog --date=iso

Any I missing something? 

Thanks,
Craig

--
Craig H Maynard
Rhode Island, USA
(401) 413-2376


```

## Jeff King, 2020-08-12 09:14

Subject: Re: git reflog --date
Message-ID: <20200812091436.GA18444@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20200812091436.GA18444%40coredump.intra.peff.net
In-Reply-To: <730B4EB4-AA72-4097-9487-D6B8623BB8E5@me.com>

```
On Tue, Aug 11, 2020 at 08:28:55PM -0400, Craig H Maynard wrote:

> I'm using git version 2.28.0. I don't see any mention of this 'git reflog' option in the online Git docs:
> 
> git reflog --date=iso
> 
> Any I missing something?

The reflog command defaults to "reflog show" if no command is given
(from the "Description" section of "git help reflog"):

  The "show" subcommand (which is also the default, in the absence of
  any subcommands) shows the log of the reference provided in the
  command-line (or HEAD, by default). The reflog covers all recent
  actions, and in addition the HEAD reflog records branch switching. git
  reflog show is an alias for git log -g --abbrev-commit
  --pretty=oneline; see git-log(1) for more information.

And the implication that it takes the same options as git-log is spelled
out explicitly in the Options section:

   Options for show
     git reflog show accepts any of the options accepted by git log.

You can find a more detailed description of --date in the git-log
manpage.

-Peff

```

## Craig H Maynard, 2020-08-12 12:34

Subject: Re: git reflog --date
Message-ID: <44B5E44C-E1D8-439F-9C5B-6C5EA9CF7620@me.com>
URL: https://gitlist.dev/e/44B5E44C-E1D8-439F-9C5B-6C5EA9CF7620%40me.com
In-Reply-To: <20200812091436.GA18444@coredump.intra.peff.net>

```

Thanks for this helpful information. I'll read the docs more carefully from now on. -Craig


> On Aug 12, 2020, at 5:14 AM, Jeff King <peff@peff.net> wrote:
> 
> On Tue, Aug 11, 2020 at 08:28:55PM -0400, Craig H Maynard wrote:
> 
>> I'm using git version 2.28.0. I don't see any mention of this 'git reflog' option in the online Git docs:
>> 
>> git reflog --date=iso
>> 
>> Am I missing something?
> 
> The reflog command defaults to "reflog show" if no command is given
> (from the "Description" section of "git help reflog"):
> 
>  The "show" subcommand (which is also the default, in the absence of
>  any subcommands) shows the log of the reference provided in the
>  command-line (or HEAD, by default). The reflog covers all recent
>  actions, and in addition the HEAD reflog records branch switching. git
>  reflog show is an alias for git log -g --abbrev-commit
>  --pretty=oneline; see git-log(1) for more information.
> 
> And the implication that it takes the same options as git-log is spelled
> out explicitly in the Options section:
> 
>   Options for show
>     git reflog show accepts any of the options accepted by git log.
> 
> You can find a more detailed description of --date in the git-log
> manpage.
> 
> -Peff


```
