From 276768416586c62a727c7ff826369cb7d7ac6462 Mon Sep 17 00:00:00 2001 From: Simon Coffey Date: Mon, 16 Jan 2023 17:22:12 +0000 Subject: [PATCH] Remove #process_tag_data indent parameter As with the previous commits, this indent parameter appears to be a relic of old usage; the #process_tag_data method has a single caller that explicitly sets the indent to zero, so the indent parameter and associated handling can just be removed. Signed-off-by: Simon Coffey --- lib/git/lib.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/git/lib.rb b/lib/git/lib.rb index 64700c71..f12e66d6 100644 --- a/lib/git/lib.rb +++ b/lib/git/lib.rb @@ -262,10 +262,10 @@ def each_commit_header(data) def tag_data(name) sha = sha.to_s tdata = command_lines('cat-file', 'tag', name) - process_tag_data(tdata, name, 0) + process_tag_data(tdata, name) end - def process_tag_data(data, name, indent=4) + def process_tag_data(data, name) hsh = { 'name' => name, 'message' => '' @@ -279,7 +279,7 @@ def process_tag_data(data, name, indent=4) hsh[key] = value.join(' ') end - hsh['message'] = data.collect {|line| line[indent..-1]}.join("\n") + "\n" + hsh['message'] = data.join("\n") + "\n" return hsh end