Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
TortoiseGit
TortoiseGit
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 301
    • Issues 301
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 8
    • Merge requests 8
  • Requirements
    • Requirements
    • List
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #449

Closed
Open
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
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None