-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect changes in remote repositories when listing dependencies #302
Comments
To be clear, are you proposing that Generally, "dirty" does not refer to unpushed changes so perhaps a new |
Yes, I would like At least in our use of I would actually prefer to minimize the number of flags, as a single flag could cover both Alternatively, we could include |
My initial thought on why |
I see what you mean. I think for now it would be valuable to have the I guess it is not possible for |
I would like Gitman to be able to detect changes/committed changes in dependency repositories as changes are often implemented directly within the project for testing when using the dependency repository as a submodule.
I have an example of
gitman.yaml
Assume I am making a change directly in the
.pre-commit-config.yaml
in the root project then I expectgit
to detect the changes/commited changes as they do for git submodules.If I run
git status
from the root I also don't see any changes. I would like to have an indication from Gitman that the dependency repository is in state "Your branch is ahead of 'origin/main' by X commit".One way to mitigate this would be to configure a git alias
alias git='f(){ if ! gitman list --fail-if-dirt > /dev/null; then gitman list --fail-if-dirt; fi; git "$@"; unset -f f; }; f'
to make sure this command is executed before anygit
commands. However, this will not capture the committed changes. This command also returns exit code 0 even though ´gitman` returns an error. I would expect exit code 1.If this is not resolved I am affraid that users will forget that they made any changes to a dependency project and suddenly a lot of changes might be missed and forgotten.
The text was updated successfully, but these errors were encountered: