Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7566351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:23:24+00:00 2026-05-30T14:23:24+00:00

When applying multi-file diff from CC, Eclipse recognizes only the first file from the

  • 0

When applying multi-file diff from CC, Eclipse recognizes only the first file from the patch and thinks that changes from the whole patch belong to this first file.

Detailed description: Create a review in CC with more than one file. Select Download diff on the main review page and save the file. Then go to Eclipse, right click some project, click on Team -> Apply patch and enter the path to the downloaded diff file. Click Next and Eclipse will present the content of the patch incorrectly: it recognizes only the first file and attributes changes from the whole patch to it even though they belong to the subsequent files from the patch.

Am I doing something wrong? Is there some fix or workaround for this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T14:23:25+00:00Added an answer on May 30, 2026 at 2:23 pm

    To answer my own question:

    Eclipse requires Index: line at the beginning of the changes for each file. It works OK like this:

    Index: /file1
    --- /file1
    +++ /file1
    _changes in file 1_
    Index: /file2
    --- /file2
    +++ /file2
    _changes in file 2_
    

    CC diff does not contain Index: lines. You can use the following awk script to add them:

    awk 'BEGIN {minus="## filler"}; /^\+\+\+/ {print "Index: " $2;}; {print minus; minus=$0}; END {print minus}' cc_diff.txt>eclipse_diff.txt
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am applying file upload size restriction, that user can't upload files more than
I am applying style to div using JavaScript it appears well at the first
I'm applying an XSLT stylesheet to the following XML file: <top xmlns=http://www.foo.com/bar> <elementA />
I am attempting at embedding multi-threading for the first time ever and running into
I am applying join query to fetch data from database on my iPhone app.
I am having difficulties applying my custom 404 page in Drupal. So first I
As applying unit-test to some C code, we run into a problem that some
When we are applying a lot of style changes using JavaScript to a single
I'm having trouble applying a patch to my source tree, and it's not the
I'm applying an XSLT stylesheet to an XML chat log and want to only

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.