git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Stash Feature
@ 2015-06-03 15:22 Fabrizio Mancin
  2015-06-03 15:53 ` Konstantin Khomoutov
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrizio Mancin @ 2015-06-03 15:22 UTC (permalink / raw
  To: git

 Hi Guys,

I've a little request for you.
What about saving date-time on git stash save command and show it on
git stash show stash@{xxx}?
I think it is a useful poperty to save.

What do you think about it?

Thank you
Fabrizio

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Stash Feature
  2015-06-03 15:22 Stash Feature Fabrizio Mancin
@ 2015-06-03 15:53 ` Konstantin Khomoutov
  2015-06-03 18:53   ` Randal L. Schwartz
  0 siblings, 1 reply; 3+ messages in thread
From: Konstantin Khomoutov @ 2015-06-03 15:53 UTC (permalink / raw
  To: Fabrizio Mancin; +Cc: git

On Wed, 3 Jun 2015 17:22:57 +0200
Fabrizio Mancin <fabman08@gmail.com> wrote:

> I've a little request for you.
> What about saving date-time on git stash save command and show it on
> git stash show stash@{xxx}?
> I think it is a useful poperty to save.
> 
> What do you think about it?

This information is already there as a stash entry is internally
represented as a commit (with one or more parents), and being a commit,
it possess all the standard attributes of a commit, including the
creation timestamp.

To get "normal" view of this commit just run

  git show stash@{0}

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Stash Feature
  2015-06-03 15:53 ` Konstantin Khomoutov
@ 2015-06-03 18:53   ` Randal L. Schwartz
  0 siblings, 0 replies; 3+ messages in thread
From: Randal L. Schwartz @ 2015-06-03 18:53 UTC (permalink / raw
  To: Konstantin Khomoutov; +Cc: Fabrizio Mancin, git

>>>>> "Konstantin" == Konstantin Khomoutov <kostix+git@007spb.ru> writes:

Konstantin> On Wed, 3 Jun 2015 17:22:57 +0200
Konstantin> Fabrizio Mancin <fabman08@gmail.com> wrote:

>> I've a little request for you.
>> What about saving date-time on git stash save command and show it on
>> git stash show stash@{xxx}?
>> I think it is a useful poperty to save.
>> 
>> What do you think about it?

Konstantin> This information is already there as a stash entry is
Konstantin> internally represented as a commit (with one or more
Konstantin> parents), and being a commit, it possess all the standard
Konstantin> attributes of a commit, including the creation timestamp.

git stash list can take a --format as well.  Here's a couple of my
aliases:

  sl = stash list --pretty='%gd: %h [%ar] %s'
  stashed = stash list --pretty='%gd: %Cred%h%Creset %Cgreen[%ar]%Creset %s'


-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix consulting, Technical writing, Comedy, etc. etc.
Still trying to think of something clever for the fourth line of this .sig

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-03 19:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-03 15:22 Stash Feature Fabrizio Mancin
2015-06-03 15:53 ` Konstantin Khomoutov
2015-06-03 18:53   ` Randal L. Schwartz

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).