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 382
    • Issues 382
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • 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
  • #449
Closed
Open
Issue created Aug 02, 2015 by Sven Strickroth@mrtuxOwner

Files not in the Commit dialog are committed if in index

By atna... on June 02, 2010 03:29 (imported from Google Code)


What steps will reproduce the problem?

  1. Perform e.g. a no-commit cherry-pick from command-line to get files into the index.
  2. Use TortoiseGit to commit a sub-directory that doesn't contain the files modified in step 1.
  3. See the Commit dialog list only the changes in the sub-directory.
  4. Commit.

What is the expected output? What do you see instead?
Expected: Only the files listed in the Commit dialog are committed.
Instead: Files that weren't in the Commit dialog are also committed.

What version of the product are you using? On what operating system?
TortoiseGit 1.4.4.0
git version 1.7.0.2.msysgit.0

Please provide any additional information below.
I'm attaching a sample repository to reproduce the issue.

Steps:

  1. Extract the zip file.
  2. Run "cherry-pick_2_onto_1.bat" to checkout "1" then cherry-pick "2".
  3. Right click on "Folder2" and select "Git Commit..."
  4. See that only the files in Folder2 are listed.
  5. Commit with an arbitrary message.
  6. Check the log and see that File2.txt and File3.txt were also committed.

TestRepo.zip

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