Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show newly added files in "working directory changes" #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wwestrop
Copy link

Files which are newly to a repository (but which are not yet staged) do not appear in the lower right pane in QGit.

This patch now causes them to appear there in green (consistent with how new files are shown in the commit dialog)

show-new-files

@tibirna
Copy link
Owner

tibirna commented Apr 24, 2023

My apologies for the long delay.

This change would conflict with the ability to distinguish new files added to the index (which currently appear in green in the right-hand panel) from working files not yet accounted for in the git repo.

For example, using a qgit version without your patch, use the "Edit > Commit" command to add your 'newFile.txt' to the index (check it's checkbox and click "Update Index"). (Or you can use the git command line to git add the file then hit F5 in qgit to update).

Contrast this with the behaviour of your patch, especially if you try with one file not yet added to the index and one added.

Note that the files in the working directory not yet added to git appear listed in the "Log" of the working directory under "Untracked files".

(While testing this I noticed that there is currently no way to remove a new file from the index using the "Commit" dialog, which is a bug: #133.)

Thanks
Cristian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants