Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add support for Stashes #143

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

Closed
kaisellgren opened this issue Apr 29, 2012 · 8 comments
Closed

Add support for Stashes #143

kaisellgren opened this issue Apr 29, 2012 · 8 comments
Labels
Milestone

Comments

@kaisellgren
Copy link
Contributor

Add support for a few Stash related features that are needed, wanted and appreciated:

  • List stashes
  • Destroy a stash
  • Create a stash
  • Show stash (changes)

This is what Git CLI shows me I can do:

Usage: git stash list [<options>]
   or: git stash show [<stash>]
   or: git stash drop [-q|--quiet] [<stash>]
   or: git stash ( pop | apply ) [--index] [-q|--quiet] [<stash>]
   or: git stash branch <branchname> [<stash>]
   or: git stash [save [--patch] [-k|--[no-]keep-index] [-q|--quiet] [<message>]]
   or: git stash clear
@nulltoken
Copy link
Member

Some work is in progress in libgit2. cf libgit2/libgit2#796

@pmiossec
Copy link

I'm interested in that, too...
I don't want to ask for too much but it seems to be commited in libgit2...

@nulltoken
Copy link
Member

@pmiossec Current libgit2 stash implementation relies on a git reset --hard which also removes untracked files. Once libgit2/libgit2#1118 is merged, I'll fix the GIT_STASH_INCLUDE_UNTRACKED implementation in libgit2 (cf. https://github.com/git/git/blob/master/git-stash.sh#L244). Then, I'll make it available to LibGit2Sharp (unless a good soul sends a PR before that time, of course ;-) ).

@nulltoken
Copy link
Member

Hmm. Another option would be to implement git clean in libgit2 and make git_stash() leverage it.

@nulltoken
Copy link
Member

#352 added

  • git stash save
  • git stash list

@nulltoken
Copy link
Member

#375 merged

  • git stash drop

@nulltoken
Copy link
Member

#1068 added

  • git stash pop
  • git stash apply

@nulltoken nulltoken added this to the v0.22 milestone Jun 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants