GIT stashed date -
given following stash content:
$ git stash list stash@{0}: on fixes: animations-fixes stash@{1}: wip on master: 62aecaa merge pull request #10 source/branch-name is there way have same list, including date on stash created?
a stash entry regular git commit internally. can read date ("commit date" or "author date") know when created.
as mentioned in manpage of git stash, can use formatting options git log when invoking git stash list. date, use git log's option --format:
git stash list --format="%gd: %ci - %gs" this produces output like:
stash@{0}: 2014-04-23 11:36:39 +0500 - wip on master: d072412 stuff that format uses %ci, prints committer date in iso 8601 format. use %cr relative dates:
stash@{0}: 8 minutes ago - wip on master: d072412 stuff see the manpage of git log (section "pretty formats") more formatting options.
Comments
Post a Comment