diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2010-07-28 14:45:12 -0700 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2010-08-04 11:00:07 -0700 |
commit | 60c5939b236723cb43344115eed03caf8de2b22a (patch) | |
tree | 43071e9ebc5955e697fadd1b8d4da0c13824c3d9 /org.eclipse.jgit.test/exttst/org/eclipse/jgit | |
parent | 7514a6dbdc1c69a885d900385d0d9f5b40224c2f (diff) | |
download | jgit-60c5939b236723cb43344115eed03caf8de2b22a.tar.gz jgit-60c5939b236723cb43344115eed03caf8de2b22a.zip |
Rename getOldName,getNewName to getOldPath,getNewPath
TreeWalk calls this value "path", while "name" is the stuff after the
last slash. FileHeader should do the same thing to be consistent.
Rename getOldName to getOldPath and getNewName to getNewPath.
Bug: 318526
Change-Id: Ib2e372ad4426402d37939b48d8f233154cc637da
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.test/exttst/org/eclipse/jgit')
-rw-r--r-- | org.eclipse.jgit.test/exttst/org/eclipse/jgit/patch/EGitPatchHistoryTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit.test/exttst/org/eclipse/jgit/patch/EGitPatchHistoryTest.java b/org.eclipse.jgit.test/exttst/org/eclipse/jgit/patch/EGitPatchHistoryTest.java index ae9fb0ef50..ff442b6188 100644 --- a/org.eclipse.jgit.test/exttst/org/eclipse/jgit/patch/EGitPatchHistoryTest.java +++ b/org.eclipse.jgit.test/exttst/org/eclipse/jgit/patch/EGitPatchHistoryTest.java @@ -108,9 +108,9 @@ public class EGitPatchHistoryTest extends TestCase { for (final FileHeader fh : p.getFiles()) { final String fileName; if (fh.getChangeType() != FileHeader.ChangeType.DELETE) - fileName = fh.getNewName(); + fileName = fh.getNewPath(); else - fileName = fh.getOldName(); + fileName = fh.getOldPath(); final StatInfo s = files.remove(fileName); final String nid = fileName + " in " + cid; assertNotNull("No " + nid, s); |