eclipse - Can I do a git mv with egit? -
i can on command line:
$ git mv foo bar and after commit.
can git mv in eclipse egit?
yes, if in window > preferences: team > git > committing option automatically stage files being moved enabled, both deleted old file , new file added index (alias staging area). same behavior git mv.
note, in git there no real/atomic mv: commit of moved file consists of deletion of file plus addition of file. instead, git tries detect moving/renaming. in eclipse in history view, moved files shown correctly history, e. g. cherry pick fail because of missing rename detection in jgit (see eclipse bug 372606).
Comments
Post a Comment