GitWCRev.GetWCInfo COM object ignores file path (parameter 1)
What steps will reproduce the problem?
- In chosen language (IDL - project requirement) create a GitWCRev COM object
- 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
- Access member variable of GitWCRev object:
What is the expected output? What do you see instead?
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.
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 22.214.171.124
- Windows 10 Enterprise v1709
- git 2.16.3.windows.1