Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 380
    • Issues 380
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TortoiseGitTortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #2702
Closed
Open
Issue created Feb 13, 2016 by Tao Yue@taoyue

File selection dialog should not open for Add in the most common cases

Steps

  1. Create three new files in the Git repo: file1, file2, file3
  2. Click on file1 to select it.
  3. Shift-click on file2 to select file1 and file2. Leave file3 unselected.
  4. Right-click on one of the selected files.
  5. Select Add.

What happens: The file selection dialog opens, showing file1 and file2, with both files checked.

Suggestion: The file selection dialog doesn't need to open at all.

Discussion

TortoiseGit is a fairly chatty application. The user has to OK a lot of dialogs that pop up to confirm certain actions. That's why, for example, the autoclose option was added.

I suggest also omitting the file selection dialog before the command executes, if there is no need for the dialog to show up.

Cases

If the list of checked files is identical to the user selection, then the dialog can be omitted. This is especially true for a command like Add, which does not carry the risk of destroying data. (Revert needs a confirmation dialog because you can lose data.)

The dialog should appear if the list of checked files is somehow different from the files that are selected in Windows Explorer:

  • If one of the files matches the .gitignore
  • If an empty directory was selected
  • If a non-empty directory was selected. (The file selection dialog currently shows all the files in the directory, but leaves them unchecked.)

The dialog should also show up if it was not launched from a list of selected files. For example, if the user right-clicks on an empty area of the Windows Explorer window, and then selects Add.

Conclusion

If autoclose is implemented for commands that are executed through Libgit2 (issue #2701 (closed)), then Add can now execute without opening any dialogs:

  1. Select some files, right-click on them, and select Add.
  2. No file selection pops up because it does not fall into any of the special cases.
  3. No status dialog pops up because autoclose is working.
  4. The user knows that the Add succeeded because the icon overlay changes on the selected files.

Add is one of the most common operations performed through TortoiseGit. These two changes would eliminate most of the unnecessary dialogs that are presented to the user.

add-no-dialog-needed add-dialog-needed

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking