Shouldn't "Refresh automatically when files change" exclude the contents of the .gitignore file?

Any idea on when SourceTree will no longer refresh every time something covered by the ignore file changes?

Right now this can turn the application unusable until certain processes have finished writing to a file that's not even worth bothering about anyway.

3 answers

1 accepted

Currently SourceTree for Windows will still refresh on all changed files even if they are part of .gitignore. SourceTree is just listening for file changes.

Keeping track of all the .gitignore (global and local) changes and filtering the events will need a clever cache because reading the ignore files every time would be far too slow with the number of file events that come through, this is why it hasn't been done yet but it is being in the following report:

I like the idea, but I don't know that SourceTree itself uses the .gitignore file. Almost all of its operations are git commands, and those git commands take the ignore file into account. Obviously whatever process watches for changes is an exception.

You may file a bug report or feature request on, and post the link here. If you do so, I'll vote it up.

Thanks1 It's not yet a solution, but this should get us one step further.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,233 views 4 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you