"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/redmine/scm/adapters/git_adapter.rb" between
redmine-4.0.3.tar.gz and redmine-4.0.4.tar.gz

About: Redmine is a flexible project management and bug-tracking web application (using the Ruby on Rails framework). It supports also project wikis and forums, documents management, and multiple version control systems.

git_adapter.rb  (redmine-4.0.3):git_adapter.rb  (redmine-4.0.4)
skipping to change at line 85 skipping to change at line 85
end end
end end
def branches def branches
return @branches if @branches return @branches if @branches
@branches = [] @branches = []
cmd_args = %w|branch --no-color --verbose --no-abbrev| cmd_args = %w|branch --no-color --verbose --no-abbrev|
git_cmd(cmd_args) do |io| git_cmd(cmd_args) do |io|
io.each_line do |line| io.each_line do |line|
branch_rev = line.match('\s*(\*?)\s*(.*?)\s*([0-9a-f]{40}).*$') branch_rev = line.match('\s*(\*?)\s*(.*?)\s*([0-9a-f]{40}).*$')
next unless branch_rev
bran = GitBranch.new(branch_rev[2]) bran = GitBranch.new(branch_rev[2])
bran.revision = branch_rev[3] bran.revision = branch_rev[3]
bran.scmid = branch_rev[3] bran.scmid = branch_rev[3]
bran.is_default = ( branch_rev[1] == '*' ) bran.is_default = ( branch_rev[1] == '*' )
@branches << bran @branches << bran
end end
end end
@branches.sort! @branches.sort!
rescue ScmCommandAborted rescue ScmCommandAborted
nil nil
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)