git-plus icon indicating copy to clipboard operation
git-plus copied to clipboard

Git add on unsaved changes

Open jcuenod opened this issue 9 years ago • 1 comments

When running git plus: add on a file with unsaved changes git-plus reports the file as added but, of course, nothing has been added so git plus: commit reports Nothing to commit.

The user should be notified that the file has no changes. It would be better if the user were prompted to save the file in a way that would subsequently git add it.

jcuenod avatar Jun 02 '16 23:06 jcuenod

I understand what you're saying. From the command line though, if you did git add with unchanged files then git would exit with a success code of 0 and subsequently, an attempt to commit would result in git saying there's nothing to commit.

This package is simply a wrapper around git's CLI so it just spits out what git says.

I think this is a valid request. It's not a priority right now but you're welcome to make a pull request with a solution.

akonwi avatar Nov 02 '16 18:11 akonwi