OVYA Git Bash Scritps
0.1.0
Useful git scritps and OVYA git workflow related scripts
|
Functions | |
__oglError (string) | |
Output errors to stderr. More... | |
__oglHasUpstreamBranch (string) | |
Test if the given branch has on upstream. If not, output an error to stderr. More... | |
oglGetBranch () | |
Return the current branch or detached ref. More... | |
oglGetDir () | |
Return the location of .git repo. More... | |
oglGetDivergenceStatus (string, string) | |
Return the branches divergence status. More... | |
oglGetRemoteBranches (string) | |
Return the remote branches if any, empty if no remote branches found. More... | |
oglGetStatus (string) | |
Return the git work tree status as concatenation by commas of the variables HAS_UNCOMMITTED_CHANGE and HAS_UNSTAGED_FILE. If the work tree is clean the output is the value of the variable IS_CLEAN. If the work tree is empty the output is comma separated of the variables IS_CLEAN and IS_EMPTY. More... | |
oglGetUpstreamBranch (string) | |
Return current upstream branch if any, empty if no upstream configured for the branch. More... | |
oglHasRemoteBranch (string) | |
Tests if the branch has a remote branch. More... | |
oglHasUncommittedChange (string) | |
Test if the work tree has uncommitted change(s). More... | |
oglHasUnstagedFile (string) | |
Test if the work tree has unstaged file(s). More... | |
oglHasUpstreamBranch (string) | |
Tests if the upstream branch is configured. More... | |
oglIsBranchExists (string) | |
Test if the branch exists. More... | |
oglIsBranchNeedUpdate (string, string) | |
Test if a branch need to be update regarding the upstream branch or the given branch. The branch "need to be update" when the branch is behind, has diverged. More... | |
oglIsBranchUpToDate (string, string) | |
Test if a branch is up-to-date regarding the upstream branch or the given branch. The branch "is up-to-date" when the branch is equal to the given tracking brach or if there is no tracking branch. More... | |
oglIsClean (string) | |
Test if the work tree is clean. Note that an empty work tree is considered clean. More... | |
oglSwitchToBranch (string) | |
Switch to the given branch if it's not the current branch. More... | |
oglIsValidRef () | |
Test if the given reference is valid in the local repository. The reference can be a commit hash, HEAD,u}, a branch name, a tag, etc. More... | |