Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 365
    • Issues 365
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • 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
  • #3251
Closed
Open
Created Aug 23, 2018 by Matthew Berghout@mberghout

GitWCRev.GetWCInfo COM object ignores file path (parameter 1)

What steps will reproduce the problem?

  1. In chosen language (IDL - project requirement) create a GitWCRev COM object
  2. Use the GetWCInfo member function e.g. oGitWCRev.GetWCInfo( filename, 0)
    a) where filename is a path to a repository on the local machine e.g. "c:\pathToRepository\trackedFileName"
    b) parameter 2 is a flag where 0 = include submodules, and 1 = exclude submodules
  3. Access member variable of GitWCRev object:
    a) Revision
    B) Date
    C) Author
    D) HasModifications
    E) HasUnversioned
    F) IsGitItem

What is the expected output? What do you see instead?
Expected:
When filename points to a specific file HasModifications and IsGitItem should only reflect the status of that file (e.g. if the file is unmodified HasModifications=false, or if the file is not commited to the repository, IsGitItem=false). When filename points to a directory, HasModifications should only be true if files within that directory have modifications.

Actual:
HasModifications returns as true any time that any file in the entire repository has been modified, even when the file that has been modified exists at a directory level outside of the directory specified by filename. IsGitItem returns as true any time that the specified filename exists within the folder structure where the repository is located locally.

What version of TortoiseGit and Git are you using? On what operating system?

  • TortoiseGit 2.7.0.0
  • Windows 10 Enterprise v1709
  • git 2.16.3.windows.1
Edited Aug 24, 2018 by Sven Strickroth
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking