git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Feature request: Reduce amount of diff in patch
@ 2017-11-28 16:09 KES
  2017-11-28 17:24 ` Kaartic Sivaraam
  2017-12-07 20:13 ` Stefan Beller
  0 siblings, 2 replies; 4+ messages in thread
From: KES @ 2017-11-28 16:09 UTC (permalink / raw)
  To: git

Hi.

I get often patches which can be minimized:

@@ -60,11 +64,8 @@ sub _get_filter {
         address    =>  { -like => \[ '?',  "%$search%" ] },
         company    =>  { -like => \[ '?',  "%$search%" ] },
         country_code =>  { '=' => \[ 'UPPER(?)' => $search ] },
-    ]);
 
-    $users =  $users->search( $filter, {
-        prefetch => { Packages => { Ips => { Subnet => { Server => 'Locality' }}}},
-    });
+    ]);
 
 
     return $users;

This patch can be minimized to:

@@ -60,11 +64,8 @@ sub _get_filter {
         address    =>  { -like => \[ '?',  "%$search%" ] },
         company    =>  { -like => \[ '?',  "%$search%" ] },
         country_code =>  { '=' => \[ 'UPPER(?)' => $search ] },
     ]);
 
-    $users =  $users->search( $filter, {
-        prefetch => { Packages => { Ips => { Subnet => { Server => 'Locality' }}}},
-    });

 
     return $users;

May you please fix the git to generate minimized patches?

Thank you

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

end of thread, other threads:[~2017-12-07 20:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-28 16:09 Feature request: Reduce amount of diff in patch KES
2017-11-28 17:24 ` Kaartic Sivaraam
2017-12-07 20:13 ` Stefan Beller
2017-12-07 20:28   ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).