Skip to content
Snippets Groups Projects
  1. Dec 28, 2009
    • Robin Rosenberg's avatar
      Recognize Git repository environment variables · eb63bfc1
      Robin Rosenberg authored
      
      This makes the jgit command line behave like the C Git implementation
      in the respect.
      
      These variables are not recognized in the core, though we add support
      to do the overrides there. Hence other users of the JGit library, like
      the Eclipse plugin and others, will not be affected.
      
      GIT_DIR
      	The location of the ".git" directory.
      
      GIT_WORK_TREE
      	The location of the work tree.
      
      GIT_INDEX_FILE
      	The location of the index file.
      
      GIT_CEILING_DIRECTORIES
      	A colon (semicolon on Windows) separated list of paths that
      	which JGit will not cross when looking for the .git directory.
      
      GIT_OBJECT_DIRECTORY
      	The location of the objects directory under which objects are
      	stored.
      
      GIT_ALTERNATE_OBJECT_DIRECTORIES
      	A colon (semicolon on Windows) separated list of object directories
      	to search for objects.
      
      In addition to these we support the core.worktree config setting when
      the git directory is set deliberately instead of being found.
      
      Change-Id: I2b9bceb13c0f66b25e9e3cefd2e01534a286e04c
      Signed-off-by: default avatarRobin Rosenberg <robin.rosenberg@dewire.com>
      Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
      eb63bfc1
    • Robin Rosenberg's avatar
      Add support for creating detached heads · 5b13adce
      Robin Rosenberg authored
      
      An extra flag when creating a RefUpdate object allows the
      caller to destroy the symref and replace it with an object
      ref, a.k.a. detached HEAD.
      
      Change-Id: Ia88d48eab1eb4861ebfa39e3be9258c3824a19db
      Signed-off-by: default avatarRobin Rosenberg <robin.rosenberg@dewire.com>
      Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
      5b13adce
  2. Dec 18, 2009
  3. Nov 03, 2009
    • Shawn Pearce's avatar
      Only import the sample data packs on tests that need them · e336bad3
      Shawn Pearce authored
      
      Not all of our test cases really require the sample data packs,
      and we are better off not using them because its hard to see exactly
      what condition a test is testing when looking only at the Java code.
      Clarify the dependency by only making the packs available when
      there is a real need for it.
      
      Change-Id: Id8a76ee7ee1f7efba585be4bed19a8fb5b3b3585
      Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
      e336bad3
    • Shawn Pearce's avatar
      Move T0007_Index to exttst · b28aadf1
      Shawn Pearce authored
      
      This test depends upon the external git binary, and this isn't
      really a pure Java test like our module tries to claim itself is.
      So we move it out to exttst with other tests that require additional
      external resources and/or executable code.
      
      Change-Id: Ic9be0280c8bb50a5768336c64de794eb0a492b3d
      Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
      b28aadf1
    • Shawn Pearce's avatar
      Refactor RepositoryTestCase to use LocalDiskRepository instead · 1e84e8ad
      Shawn Pearce authored
      
      Change-Id: I07014d1b8cc2fab0761d644a12e4ae04f0adf3ef
      Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
      1e84e8ad
    • Shawn Pearce's avatar
      Refactor our Maven build to be modular · dad52baa
      Shawn Pearce authored
      
      Drop our simple and stupid jgit.sh and instead rely upon Maven
      for the command line based build.  Maven is relatively simple to
      download and install, and doesn't require the entire Eclipse IDE.
      
      To avoid too much refactoring of the current code we reuse the
      existing src/ directory within each plugin, and treat each of
      the existing OSGI bundles as one Maven artifact.
      
      The command line wrapper jgit.sh no longer works in the uncompiled
      state, as we don't know where to obtain our JSch or args4j from.
      Developers will now need to compile it with `mvn package`, or run
      our Main class from within an IDE which has the proper classpath.
      
      Bug: 291265
      Change-Id: I355e95fa92fa7502651091d2b651be6917a26805
      Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
      dad52baa
    • Shawn Pearce's avatar
      Switch pgm, test to proper plugin projects · 5b89088f
      Shawn Pearce authored
      
      This way we depend upon the MANIFEST.MF to define our classpath
      and our build will act more like any other OSGI bundle build.
      
      Change-Id: I9e1f1f5a0bccb0ab0e39e49b75fb400fea446619
      Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
      5b89088f
  4. Oct 31, 2009
  5. Oct 16, 2009
  6. Oct 12, 2009
  7. Oct 08, 2009
  8. Oct 07, 2009
  9. Oct 05, 2009
  10. Oct 02, 2009
  11. Sep 29, 2009
Loading