• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: opendiff tool slow to exit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: opendiff tool slow to exit


  • Subject: Re: opendiff tool slow to exit
  • From: Mark Wagner <email@hidden>
  • Date: Tue, 24 Aug 2010 17:20:26 -0700

On Tue, Aug 24, 2010 at 10:02, Luc Bourhis <email@hidden> wrote:
> Hello Chris,
>
>> I too noticed this recently when opening multiple Subversion files to resolve conflicts.
>> (It may only be a second, but it feels a lot longer.)
>>
>> The solution was quite simple (eventually).
>>
>> #!/bin/sh
>> ..
>> /usr/bin/opendiff "$left" "$right" -ancestor "$base" -merge "$f" &
>>
>> It's the magic trailing '&' that fixed it.
>
> Thanks for the suggestion. It seems to work with subversion indeed but not for the one tool I use most: git. Indeed the latter does the following sequence of operations:
>
> (1) create a temporary file for HEAD
> (2) ask the script like yours to diff that file and the working version
> (3) delete the file when the script returns
>
> The script executes too fast and by the time opendiff/FileMerge handle the request, the temporary file is gone and it results in a failure.

There's nothing "magic" about the trailing '&'.  It means "run the
program in the background and return immediately", which is why it
seems to make opendiff finish faster.  It doesn't actually speed
things up, it just hides the slowdown.

--
Mark Wagner
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: opendiff tool slow to exit (From: Luc Bourhis <email@hidden>)

  • Prev by Date: Re: A valid provisioning profile for this executable was not found.
  • Next by Date: Re: A valid provisioning profile for this executable was not found.
  • Previous by thread: Re: opendiff tool slow to exit
  • Next by thread: Ad Hoc Distribution
  • Index(es):
    • Date
    • Thread