]> source.dussan.org Git - jgit.git/commit
RepoCommand: Copy manifest upstream into .gitmodules ref field 29/1195529/2
authorIvan Frade <ifrade@google.com>
Thu, 30 May 2024 21:04:56 +0000 (14:04 -0700)
committerIvan Frade <ifrade@google.com>
Thu, 30 May 2024 21:18:08 +0000 (14:18 -0700)
commit48465f84014904edddcdd48258c67bc19555d4c3
treef94a3959070cb92ebcccbfabfd690b85608d477e
parent1dd6324d4b4d9596813b18a44e315295f559ea12
RepoCommand: Copy manifest upstream into .gitmodules ref field

Project entries in the manifest with a specific sha1 as revision can
use the "upstream" field to report the ref pointing to that sha1. This
information is very valuable for downstream tools, as they can limit
their search for a blob to the relevant ref, but it gets lost in the
translation to .gitmodules.

Save the value of the upstream field when available/relevant in the
ref field of the .gitmodules entry.

Change-Id: I14a2395925618d5e6b34be85466e32f5ef8fbf6e
org.eclipse.jgit.test/tst/org/eclipse/jgit/gitrepo/BareSuperprojectWriterTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/gitrepo/RepoCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/BareSuperprojectWriter.java
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java