gitless icon indicating copy to clipboard operation
gitless copied to clipboard

`diff` should show change in file mode

Open njamescouk opened this issue 9 years ago • 3 comments
trafficstars

In a directory with a .git, gl status gives me:

On branch gh-pages, repo-directory //

Tracked files with modifications: ➜ these will be automatically considered for commit ➜ use gl untrack f if you don't want to track changes to file f ➜ if file f was committed before, use gl checkout f to discard local changes

.gitignore

... plus all other files

Untracked files: ➜ these won't be considered for commit ➜ use gl track f if you want to track changes to file f

There are no untracked files to list

This is a surprise as I thought everything had been committed, anyhow let's do gl diff :

! No diffs to output for .gitignore etc etc for all the other files.

I appear to be being told that all files are out of date, but there are no diffs?

njamescouk avatar Sep 30 '16 22:09 njamescouk

This looks like a bug. What do you get if you do git status and git diff .gitignore?

spderosso avatar Oct 03 '16 03:10 spderosso

git status shows all files modified then no changes added to commit (use "git add" and/or "git commit -a")

diff --git a/.gitignore b/.gitignore
old mode 100644
new mode 100755

so looks as though I need to do the git incantations first?

njamescouk avatar Oct 03 '16 16:10 njamescouk

This is a bug in Gitless. gl diff should show the change in file modes.

spderosso avatar Oct 03 '16 16:10 spderosso