Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stash: add author date to tool tip #982

Merged
merged 1 commit into from
Aug 24, 2019
Merged

Conversation

xieofxie
Copy link
Contributor

Signed-off-by: xhl xieofxie@126.com

Signed-off-by: xhl <xieofxie@126.com>
Copy link
Member

@davvid davvid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a tiny sug, so I'll be merging this as-is. That's just a note for later -- I'll probably fix it locally Thanks again!

names = [s.split(': ', 2)[-1] for s in stashes]

return stashes, revids, names
stashes = self.stash_list('--format=%gd/%aD/%s')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small sug: it might make sense to use a python r'aw string' here (prefix the string literal with r) so that it's clear that these are all literal values and we do not expect python to do any interpolation over the %xxx fields. It doesn't make a difference in practice, but it makes it clear to the reader that we want to pass the string in exactly as-is.

davvid added a commit to davvid/git-cola that referenced this pull request Aug 24, 2019
* xieofxie/stash_date:
  stash: add author date to tool tip

Signed-off-by: David Aguilar <davvid@gmail.com>
@davvid davvid merged commit 540a956 into git-cola:master Aug 24, 2019
@xieofxie xieofxie deleted the stash_date branch November 6, 2019 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants