module StashCLI::GitUtils
Public Class Methods
commits_from_branch(source_branch)
click to toggle source
# File lib/stash_cli/git_utils.rb, line 11 def self.commits_from_branch(source_branch) current_branch = GitUtils.current_branch `git log --oneline #{source_branch}..#{current_branch} | cat`.strip end
current_branch()
click to toggle source
# File lib/stash_cli/git_utils.rb, line 7 def self.current_branch `git rev-parse --abbrev-ref HEAD`.strip end
repo_dir()
click to toggle source
# File lib/stash_cli/git_utils.rb, line 3 def self.repo_dir `git rev-parse --show-toplevel`.strip end