Re: Ignoring local changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2007-09-13 11:14:30 -0300, Pazu wrote:

> 2007/9/13, Andreas Ericsson <ae@xxxxxx>:
>
> > Out of curiousity; Why does the IDE change those files if they're
> > part of the project?
>
> Because it sucks.
>
> [...]
>
> I'm a small fish, trying to swim against the stream. I'm trying to
> use git to improve my personal productivity, but I can't force
> anything "upstream", so modifying the svn repository to remove these
> problematic files is out of question.

Hmm. Doesn't svn have the exact same problem as git in this case?

You could work around the problem by having a small script that
reverts changes to those files (provided you don't usually edit them,
of course, in which case this would eventually bite you). Something
along the lines of

  $ git checkout -- $(git ls-files '*.someExt')

might do the trick.

(It doesn't seem like checkout accepts --stdin or -z parameters, so
this isn't as robust as it could be.)

-- 
Karl Hasselström, kha@xxxxxxxxxxx
      www.treskal.com/kalle
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux