Skip to content

JGit cleanups

Robin Rosenberg git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Require javadoc on protected methods in jgit coreorg.spearce.jgit.pgm/.settings/org.eclipse.jdt.core.prefs org.spearce.jgit.pgm/src/org/spearce/jgit/pgm/TextBuiltin.java org.spearce.jgit/.settings/org.eclipse.jdt.core.prefs +19 more+75 -480 replies
2/10Rename the objectsUrl in the nested HttpObjectDB toorg.spearce.jgit/src/org/spearce/jgit/transport/TransportHttp.java+7 -73 replies
3/10Rename variables that hides others with different content in FetchProcessorg.spearce.jgit/src/org/spearce/jgit/transport/FetchProcess.java+4 -40 replies
4/10Rename a parameter i PackWriter that hides another with the same nameorg.spearce.jgit/src/org/spearce/jgit/lib/PackWriter.java+3 -30 replies
5/10Rename fields to avoid hiding of field names in ReadTreeTestorg.spearce.jgit.test/tst/org/spearce/jgit/lib/ReadTreeTest.java+59 -590 replies
6/10Rename the gitDir fields to indicate they refer to another dir than the defaultorg.spearce.jgit.pgm/src/org/spearce/jgit/pgm/ReceivePack.java org.spearce.jgit.pgm/src/org/spearce/jgit/pgm/UploadPack.java+10 -100 replies
7/10Rename a parameter in PushProcessTest that hides anotherorg.spearce.jgit.test/tst/org/spearce/jgit/transport/PushProcessTest.java+2 -20 replies
8/10Drop unused end parameters in hunk parsing codeorg.spearce.jgit/src/org/spearce/jgit/patch/CombinedHunkHeader.java org.spearce.jgit/src/org/spearce/jgit/patch/HunkHeader.java org.spearce.jgit/src/org/spearce/jgit/patch/Patch.java+6 -61 reply
9/10Drop unused File arguments in IndexTreeWalker and WorkdirCheckoutorg.spearce.jgit/src/org/spearce/jgit/lib/IndexTreeWalker.java org.spearce.jgit/src/org/spearce/jgit/lib/WorkDirCheckout.java+6 -70 replies
10/10Drop an effectively unused parameter in IndexTreeWalker.org.spearce.jgit/src/org/spearce/jgit/lib/IndexTreeWalker.java+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [EGIT PATCH 00/10] JGit cleanups

Getting annoyed with all the noise I came up with series of cleanups. The hunk parsing fixes are the one's I'm not really sure about, but my attempts to find a case that would give an uncontrolled error did not find much success.

-- robin

Robin Rosenberg (10):
Require javadoc on protected methods in jgit core
Rename the objectsUrl in the nested HttpObjectDB to
Rename variables that hides others with different content in
FetchProcess
Rename a parameter i PackWriter that hides another with the same name Rename fields to avoid hiding of field names in ReadTreeTest Rename the gitDir fields to indicate they refer to another dir than
the default
Rename a parameter in PushProcessTest that hides another Drop unused end parameters in hunk parsing code
Drop unused File arguments in IndexTreeWalker and WorkdirCheckout Drop an effectively unused parameter in IndexTreeWalker.

 .../.settings/org.eclipse.jdt.core.prefs           |    7 +-
 .../src/org/spearce/jgit/pgm/ReceivePack.java      |   10 +-
 .../src/org/spearce/jgit/pgm/TextBuiltin.java      |    9 +-
 .../src/org/spearce/jgit/pgm/UploadPack.java       |   10 +-
 .../tst/org/spearce/jgit/lib/ReadTreeTest.java     |  118 ++++++++++----------
 .../spearce/jgit/transport/PushProcessTest.java    |    4 +-
 .../.settings/org.eclipse.jdt.core.prefs           |    5 +-
 .../jgit/dircache/DirCacheBuildIterator.java       |    2 +-
 .../spearce/jgit/dircache/DirCacheIterator.java    |    2 +-
 .../src/org/spearce/jgit/lib/IndexTreeWalker.java  |   12 +-
 .../src/org/spearce/jgit/lib/ObjectId.java         |    2 +-
 .../src/org/spearce/jgit/lib/PackIndex.java        |    6 +-
 .../src/org/spearce/jgit/lib/PackWriter.java       |    8 +-
 .../jgit/lib/TreeVisitorWithCurrentDirectory.java  |    4 +-
 .../src/org/spearce/jgit/lib/WorkDirCheckout.java  |   17 ++--
 .../org/spearce/jgit/merge/StrategyOneSided.java   |    2 +-
 .../org/spearce/jgit/patch/CombinedHunkHeader.java |    2 +-
 .../src/org/spearce/jgit/patch/FileHeader.java     |   18 ++--
 .../src/org/spearce/jgit/patch/HunkHeader.java     |    6 +-
 .../src/org/spearce/jgit/patch/Patch.java          |    8 +-
 .../org/spearce/jgit/revplot/PlotCommitList.java   |    9 ++
 .../src/org/spearce/jgit/revplot/PlotWalk.java     |    4 +
 .../org/spearce/jgit/transport/DaemonService.java  |    4 +-
 .../org/spearce/jgit/transport/FetchProcess.java   |    8 +-
 .../org/spearce/jgit/transport/OpenSshConfig.java  |    2 +-
 .../spearce/jgit/transport/OperationResult.java    |   10 +-
 .../spearce/jgit/transport/PackedObjectInfo.java   |    2 +-
 .../src/org/spearce/jgit/transport/PushResult.java |    2 +-
 .../spearce/jgit/transport/RemoteRefUpdate.java    |    6 +-
 .../org/spearce/jgit/transport/TransportHttp.java  |   14 +-
 .../spearce/jgit/treewalk/WorkingTreeIterator.java |    7 +
 31 files changed, 173 insertions(+), 147 deletions(-)