Why are so many git processes being launched in the background?

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 1.6
    • Component/s: None
    • None
    • Severity 3 - Minor

      After commenting on this on ticket SRCTREEWIN-2038, I checked what is going on and it doesn't feel right.

      I have disabled "refresh automatically when files change" and I see git being started 3-4 times within a second. These are the commands being executed all the time, for the different repositories:

      status --porcelain --untracked-files=all --ignore-submodules=dirty
      show-ref --head --dereference
      remote -v
      branch -r
      stash list
      rev-parse HEAD^1
      branch
      branch -vv
      rev-parse HEAD

      Some commands are execute for the same repository several times in a row, within the same second. Is this really necessary? Shouldn't this be checked only when refreshing?

      I gahered the information using ProcessMonitor from Sysinternals, setting a filter for showing only "start process" events and with parent id = sourcetree's.

            Assignee:
            Unassigned
            Reporter:
            Vlad Dumitrescu
            Votes:
            7 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: