- Configure new driver call
poetry-lockeither globaly in~/.gitconfigor in$GIT_DIR/config. - Tell Git to use this driver when merging
poetry.lockfile by commiting.gitattributesin your repository or by editing$GIT_DIR/info/attributesor setting it globally for all repositories in$HOME/.config/git/attributes.
Last active
October 10, 2022 09:12
-
-
Save jirikuncar/dc2e0d8bc01708e303610a87cbe73dc7 to your computer and use it in GitHub Desktop.
Git merge driver for `poetry.lock`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # or $GIT_DIR/info/attributes or $XDG_CONFIG_HOME/git/attributes or $HOME/.config/git/attributes | |
| poetry.lock merge=poetry-lock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [merge "poetry-lock"] | |
| name = "Run poetry lock" | |
| driver = poetry lock && cp %P %A |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment