git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC GSoC] gitweb: Use -M option while using format-patch
@ 2010-05-10 16:08 Pavan Kumar Sunkara
  2010-05-10 16:41 ` Jakub Narebski
  2010-05-10 18:11 ` Petr Baudis
  0 siblings, 2 replies; 4+ messages in thread
From: Pavan Kumar Sunkara @ 2010-05-10 16:08 UTC (permalink / raw)
  To: Petr Baudis, Christian Couder, Git List, Jakub Narebski

Add option '-M' to use with format-patch whcih detects
renames in the commit.

Signed-off-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
---

  gitweb/gitweb.perl |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index c356e95..0184de5 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -6117,7 +6117,7 @@ sub git_commitdiff {
                         }
                         push @commit_spec, '--root', $hash;
                 }
-               open $fd, "-|", git_cmd(), "format-patch", 
'--encoding=utf8',
+               open $fd, "-|", git_cmd(), "format-patch", '-M', 
'--encoding=utf8',
                         '--stdout', @commit_spec
                         or die_error(500, "Open git-format-patch failed");
         } else {
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-10 18:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-10 16:08 [PATCH RFC GSoC] gitweb: Use -M option while using format-patch Pavan Kumar Sunkara
2010-05-10 16:41 ` Jakub Narebski
2010-05-10 16:56   ` Giuseppe Bilotta
2010-05-10 18:11 ` Petr Baudis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).