git-exec-and-restage icon indicating copy to clipboard operation
git-exec-and-restage copied to clipboard

Does not re-stage changes to partial files

Open motiz88 opened this issue 7 years ago • 3 comments

Originally reported by @Stupidism in https://github.com/motiz88/git-exec-and-restage/issues/5#issue-228844635:

When I want to commit partial files, it can't add fixed part.

motiz88 avatar May 16 '17 10:05 motiz88

This is the intended behaviour. I don't foresee it changing unless someone makes a very compelling case for a specific thing we can always safely do with partially staged files, which will never trash anyone's commits.

motiz88 avatar May 16 '17 10:05 motiz88

If you are OK with git stash

I did figure sth out with git stash https://github.com/Stupidism/react-starter-kit/blob/feature/perfect-lint-staged/package.json#L209-L216

Stupidism avatar May 16 '17 17:05 Stupidism

@Stupidism I'm afraid I can't look into that right now but I'm all for further discussion here.

motiz88 avatar May 17 '17 08:05 motiz88