two functions to get changed file between two branches have been added

This commit is contained in:
Sameer Rahmani 2020-01-07 10:42:47 +00:00
parent 9a1a3a3bf3
commit 0d931da021
1 changed files with 8 additions and 0 deletions

View File

@ -139,6 +139,14 @@ function git_pull() {
git pull origin `git_current_branch` --rebase
}
function git_changed_files() {
git diff --name-only $1 $(git merge-base $1 $2)
}
function git_changed_files_since_master() {
git_changed_files $(git_current_branch) master
}
#this is unlikely to change so make it all statically assigned
POST_1_7_2_GIT=$(git_compare_version "1.7.2")
#clean up the namespace slightly by removing the checker function