-
Notifications
You must be signed in to change notification settings - Fork 898
Implement Stash API. #871
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
Implement Stash API. #871
Conversation
@@ -1328,6 +1330,12 @@ private static bool IsRunningOnLinux() | |||
[DllImport(libgit2)] | |||
internal static extern int git_stash_drop(RepositorySafeHandle repo, UIntPtr index); | |||
|
|||
[DllImport(libgit2)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ZOMG! tabs!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I know. I did it as fast as possible without caring what's going on. :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😉
https://visualstudiogallery.msdn.microsoft.com/dbcb8670-889e-4a54-a226-a48a15e4cace --2013 All have the feature to detect mixed tabs. https://visualstudiogallery.msdn.microsoft.com/c8bccfe2-650c-4b42-bc5c-845e21f96328 This one saves your bacon by changing the settings to fit the design of which project you are on. |
@vbjay I do my work in XS and it has auto-format on save, I just didn't do it in an IDE this time (vimmed my way through it since I was ssh'ing to my machine from college when this PR happened). |
Oh the fun with vim. :) On Wed Dec 03 2014 at 11:33:17 AM Marius Ungureanu [email protected]
|
Hey guys, I really mentioned "I wanted a quick patch" to test. I opened the PR on API discussion. I'll fix the PR up after the libgit2 PR is merged, since there's no worth in overworking if that PR is dropped or the API changes. 🐰 |
@Therzok spaces are a serious matter. That shouldn't be underestimated. Ever |
bebfe81
to
957530c
Compare
Okay, I'm advancing on this thing. I got a few issues I have to point out.
|
I'm also experiencing some weird behaviour:
|
3b8a9a7
to
0176b96
Compare
/// <param name="index">the index of the stash to remove (0 being the most recent one).</param> | ||
/// <param name="options">the options to use for checking out the stash.</param> | ||
/// <param name="flags">the flags to use for applying the changes.</param> | ||
public virtual StashApplyStatus Apply(int index, StashApplyModifiers flags = StashApplyModifiers.Default, CheckoutOptions options = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably this could be abstracted in a StashApplyOptions.
class StashApplyOptions
{
StashApplyModifiers flags;
CheckoutOptions checkoutOptions;
}
/cc @nulltoken
Based on libgit2/libgit2#2705
Not in master yet, adding so I can test locally.