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

prompt when there are untracked files that are not ignored

Open andrewshadura opened this issue 8 years ago • 0 comments

When in a git repository with untracked files that are not ignored, it would be nice to be able to stage and or commit those files.

pabs@chianamo ~ $ mkdir tmp-git-crecord-staging/
pabs@chianamo ~ $ cd tmp-git-crecord-staging/
pabs@chianamo ~/tmp-git-crecord-staging $ git init
Initialized empty Git repository in /home/pabs/tmp-git-crecord-staging/.git/
pabs@chianamo ~/tmp-git-crecord-staging (master #) $ touch foo
pabs@chianamo ~/tmp-git-crecord-staging (master #%) $ git crecord
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
no changes to record
pabs@chianamo ~/tmp-git-crecord-staging (master #%) $ git add foo
pabs@chianamo ~/tmp-git-crecord-staging (master +) $ git commit -am foo
[master (root-commit) 7daca94] foo
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 foo
pabs@chianamo ~/tmp-git-crecord-staging (master) $ touch bar
pabs@chianamo ~/tmp-git-crecord-staging (master %) $ git crecord
no changes to record

(Reported by Paul Wise <@pabs3>)

andrewshadura avatar Oct 10 '17 07:10 andrewshadura