benthayer / benthayer/git-gud

"git gud commit" should not commit user added files.

Open
#136 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
558
Forks
53
PR merge metrics
No merged PRs in 30d

Description

"git gud commit" should only ever commit the files we expect it to, not ones added by users.

If someone has modified the index ("git add" "git rm" etc), then we'll also be committing those extra changes when running "git gud commit"

Example:
After running these commands
```
touch foo
git add foo
git gud commit
```
This is what we see
```
$ git ls-files foo
foo
```

This is what we want to see (no output)
```
$ git ls-files foo
```

This goes along with #39 and #131. We want to limit the user to only committing in ways we want them to

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.