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

Improve stash command #135

Closed
vrom911 opened this issue Jan 18, 2020 · 1 comment · Fixed by #186
Closed

Improve stash command #135

vrom911 opened this issue Jan 18, 2020 · 1 comment · Fixed by #186
Assignees
Labels
CLI command-line interface enhancement New feature or request Git Git commands

Comments

@vrom911
Copy link
Member

vrom911 commented Jan 18, 2020

  • named stashing
  • list of stashes
  • show the diff of the particular stash
  • clear stashes

We can work on polishing this command. Let me know what do you think about what could be included 🙂

@vrom911 vrom911 added enhancement New feature or request Git Git commands CLI command-line interface labels Jan 18, 2020
@chshersh
Copy link
Contributor

Ideally, I'd love to keep the current behavior: hit stash stashes and hit unstash unstashes. And those commands take an argument, then it's a named stash, like hit stash doc-fix. However, this means that we will need to implement separate commands, like hit stash-list, hit stash-clear. Alternatively, names can be passed as parameters and all commands will be nested. So two versions
In short:

Version 1

hit stash
hit stash temp-fix
hit unstash
hit unstash temp-fix
hit stash-list
hit stash-diff

Version 2

hit stash
hit stash --name temp-fix
hit stash list
hit stash diff [Possible arguments]
hit stash clear

What would be the most convenient interface, you think? Also, I'm not sure whether optparse-applicative allows implementing the second version.

@chshersh chshersh added this to the v0.2.0.0: Refinement milestone Feb 9, 2020
@chshersh chshersh assigned chshersh and unassigned chshersh Jun 28, 2020
chshersh added a commit that referenced this issue Jul 4, 2020
vrom911 pushed a commit that referenced this issue Jul 4, 2020
* [#135] Improve `stash` command

Resolves #135

* Update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI command-line interface enhancement New feature or request Git Git commands
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants