Bug 48041 - `webkit-patch upload` runs git-diff at least 3 times, which is slow
Summary: `webkit-patch upload` runs git-diff at least 3 times, which is slow
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 39207
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-20 22:36 PDT by Adam Roben (:aroben)
Modified: 2010-10-21 08:18 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2010-10-20 22:36:58 PDT
`webkit-patch upload` runs git-diff at least 3 times:

1) when finding ChangeLogs to parse for bug IDs
2) when running check-webkit-style (I think)
3) when creating the diff to present to the user for confirmation

There might be other instances of git-diff that I've missed.

It would be faster if we could just run git-diff once.
Comment 1 Adam Barth 2010-10-20 22:46:08 PDT
Yeah, I recently removed one of them (by sharing the one for prepare-ChangeLog with another one we do).  We should be able to remove the one for check-webkit-style by passing it the list of changed files.  However, passing them today gives you different output.  We need to teach check-webkit-style to diff a set of files provided on the command line.  It's not that much code.
Comment 2 Eric Seidel 2010-10-21 08:17:22 PDT
I'm pretty sure we have another bug on this somewhere...
Comment 3 Eric Seidel 2010-10-21 08:18:12 PDT
See bug 39207.