Reduce code duplication in version check script · gitpython-developers/GitPython@c7cdaf4 · GitHub
Skip to content

Commit c7cdaf4

Browse files
committed
Reduce code duplication in version check script
This extracts duplicated code to functions in check-version.sh. One effect is unfortunately that the specific commands being run are less explicitly clear when reading the script. However, small future changes, if accidentally made to one but not the other in either pair of "git status" commands, would create a much more confusing situation. So I think this change is justified overall.
1 parent 7110bf8 commit c7cdaf4

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

check-version.sh

Lines changed: 7 additions & 4 deletions

0 commit comments

Comments
 (0)