diff options
author | Simon Eder <simon.eclipse@hotmail.com> | 2024-07-31 16:21:46 +0200 |
---|---|---|
committer | Thomas Wolf <twolf@apache.org> | 2024-12-11 21:58:54 +0100 |
commit | df7810957c00f3d857c006ff62ea7dd0e5b6fb76 (patch) | |
tree | 6003075c1450d87bd6f55585a1623573ac30e115 /org.eclipse.jgit/src/org/eclipse/jgit/api/RevertCommand.java | |
parent | 8dfb2a2465c8728649f6224ceab76ac9d8cca407 (diff) | |
download | jgit-df7810957c00f3d857c006ff62ea7dd0e5b6fb76.tar.gz jgit-df7810957c00f3d857c006ff62ea7dd0e5b6fb76.zip |
Submodules: use relative paths for worktree and gitdir
Currently absolute paths are used for a submodules 'worktree' and
'gitdir'. This has drawbacks if a git repository containing submodules
is copied to a different location.
Enable using relative paths when creating a file-based repository. Add
optional relative path support to the clone and init commands, and use
it in the submodule commands to generate relative paths.
The new implementation mimics the cgit behavior which also uses
relative paths instead of absolute ones.
Bug: jgit-78
Change-Id: I31c5a938d5cbc030d273fc649c94ee0c90b4ce01
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/api/RevertCommand.java')
0 files changed, 0 insertions, 0 deletions