summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit/src/org/eclipse/jgit
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2013-03-24 01:06:29 +0100
committerChristian Halstrick <christian.halstrick@sap.com>2013-03-26 00:48:00 +0100
commitd0e92885e911c96be917574a5f804bf64d622cf9 (patch)
tree72a36fdd5d370e10b0585d9658b68d36dc3903e8 /org.eclipse.jgit.junit/src/org/eclipse/jgit
parent7aa54967a26cb027fe390ad1c624ebb30f9ac6d5 (diff)
downloadjgit-d0e92885e911c96be917574a5f804bf64d622cf9.tar.gz
jgit-d0e92885e911c96be917574a5f804bf64d622cf9.zip
Extend FileUtils.rename to common git semantics
Unlike the OS or Java rename this method will (on *nix) try (on Windows) replace the target with the source provided the target does not exist, the target does exist and is a file, or if it is a directory which only contains directories. In the latter case the directory hierarchy will be deleted. If the initial rename fails and the target is an existing file the the target file will be deleted first and then the rename is retried. Change-Id: Iae75c49c85445ada7795246a02ce02f7c248d956 Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
Diffstat (limited to 'org.eclipse.jgit.junit/src/org/eclipse/jgit')
0 files changed, 0 insertions, 0 deletions