@@ -35,7 +35,7 module Redmine | |||||
35 | def branches |
|
35 | def branches | |
36 | return @branches if @branches |
|
36 | return @branches if @branches | |
37 | @branches = [] |
|
37 | @branches = [] | |
38 | cmd = "#{GIT_BIN} --git-dir #{target('')} branch" |
|
38 | cmd = "#{GIT_BIN} --git-dir #{target('')} branch --no-color" | |
39 | shellout(cmd) do |io| |
|
39 | shellout(cmd) do |io| | |
40 | io.each_line do |line| |
|
40 | io.each_line do |line| | |
41 | @branches << line.match('\s*\*?\s*(.*)$')[1] |
|
41 | @branches << line.match('\s*\*?\s*(.*)$')[1] | |
@@ -86,7 +86,7 module Redmine | |||||
86 |
|
86 | |||
87 | def lastrev(path,rev) |
|
87 | def lastrev(path,rev) | |
88 | return nil if path.nil? |
|
88 | return nil if path.nil? | |
89 | cmd = "#{GIT_BIN} --git-dir #{target('')} log --date=iso --pretty=fuller --no-merges -n 1 " |
|
89 | cmd = "#{GIT_BIN} --git-dir #{target('')} log --no-color --date=iso --pretty=fuller --no-merges -n 1 " | |
90 | cmd << " #{shell_quote rev} " if rev |
|
90 | cmd << " #{shell_quote rev} " if rev | |
91 | cmd << "-- #{shell_quote path} " unless path.empty? |
|
91 | cmd << "-- #{shell_quote path} " unless path.empty? | |
92 | shellout(cmd) do |io| |
|
92 | shellout(cmd) do |io| | |
@@ -114,7 +114,7 module Redmine | |||||
114 | def revisions(path, identifier_from, identifier_to, options={}) |
|
114 | def revisions(path, identifier_from, identifier_to, options={}) | |
115 | revisions = Revisions.new |
|
115 | revisions = Revisions.new | |
116 |
|
116 | |||
117 | cmd = "#{GIT_BIN} --git-dir #{target('')} log --raw --date=iso --pretty=fuller " |
|
117 | cmd = "#{GIT_BIN} --git-dir #{target('')} log --no-color --raw --date=iso --pretty=fuller " | |
118 | cmd << " --reverse " if options[:reverse] |
|
118 | cmd << " --reverse " if options[:reverse] | |
119 | cmd << " --all " if options[:all] |
|
119 | cmd << " --all " if options[:all] | |
120 | cmd << " -n #{options[:limit]} " if options[:limit] |
|
120 | cmd << " -n #{options[:limit]} " if options[:limit] | |
@@ -209,7 +209,7 module Redmine | |||||
209 | path ||= '' |
|
209 | path ||= '' | |
210 |
|
210 | |||
211 | if identifier_to |
|
211 | if identifier_to | |
212 | cmd = "#{GIT_BIN} --git-dir #{target('')} diff #{shell_quote identifier_to} #{shell_quote identifier_from}" |
|
212 | cmd = "#{GIT_BIN} --git-dir #{target('')} diff --no-color #{shell_quote identifier_to} #{shell_quote identifier_from}" | |
213 | else |
|
213 | else | |
214 | cmd = "#{GIT_BIN} --git-dir #{target('')} show #{shell_quote identifier_from}" |
|
214 | cmd = "#{GIT_BIN} --git-dir #{target('')} show #{shell_quote identifier_from}" | |
215 | end |
|
215 | end |
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
General Comments 0
You need to be logged in to leave comments.
Login now