-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[File Explorer Integration] Git submodule status and commit log insid…
…e submodule (#3745)
- Loading branch information
1 parent
23d5a14
commit 229084a
Showing
244 changed files
with
974 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
112 changes: 112 additions & 0 deletions
112
extensions/GitExtension/FileExplorerGitIntegration.UnitTest/GitSubmoduleUnitTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
using FileExplorerGitIntegration.Models; | ||
|
||
namespace FileExplorerGitIntegration.UnitTest; | ||
|
||
[TestClass] | ||
public class GitSubmoduleUnitTests | ||
{ | ||
private const string FolderStatusProp = "System.VersionControl.CurrentFolderStatus"; | ||
private const string StatusProp = "System.VersionControl.Status"; | ||
private const string ShaProp = "System.VersionControl.LastChangeID"; | ||
|
||
private static SandboxHelper? _sandbox; | ||
private static GitLocalRepository? _repo; | ||
|
||
[ClassInitialize] | ||
public static void ClassInitialize(TestContext testContext) | ||
{ | ||
_sandbox = new(); | ||
var repoPath = _sandbox.CreateSandbox("submodules"); | ||
_sandbox.CreateSandbox("submodules_target"); | ||
_repo = new GitLocalRepository(repoPath); | ||
} | ||
|
||
[ClassCleanup] | ||
public static void ClassCleanup() | ||
{ | ||
if (_sandbox is not null) | ||
{ | ||
_sandbox.Cleanup(); | ||
_sandbox = null; | ||
} | ||
|
||
_repo = null; | ||
} | ||
|
||
[TestMethod] | ||
[DataRow("", FolderStatusProp, "Branch: main | +1 ~1 -0 | +0 ~7 -0")] | ||
[DataRow(".gitmodules", StatusProp, "Staged, Modified")] | ||
[DataRow("README.txt", StatusProp, "")] | ||
[DataRow("sm_added_and_uncommitted", StatusProp, "Submodule Added")] | ||
[DataRow("sm_changed_file", StatusProp, "Submodule Dirty")] | ||
[DataRow("sm_changed_head", StatusProp, "Submodule Changed")] | ||
[DataRow("sm_changed_index", StatusProp, "Submodule Dirty")] | ||
[DataRow("sm_changed_untracked_file", StatusProp, "Submodule Dirty")] | ||
[DataRow("sm_missing_commits", StatusProp, "Submodule Changed")] | ||
[DataRow("sm_missing_commits_detached", StatusProp, "Submodule Changed")] | ||
[DataRow("sm_unchanged", StatusProp, "")] | ||
[DataRow("sm_unchanged_detached", StatusProp, "")] | ||
public void RootFolderStatus(string path, string property, string value) | ||
{ | ||
Assert.IsNotNull(_repo); | ||
var result = _repo.GetProperties([property], path); | ||
Assert.IsNotNull(result); | ||
Assert.AreEqual(value, result[property]); | ||
} | ||
|
||
[TestMethod] | ||
[DataRow("", ShaProp, "8a303a1d530d9d4e9f31002d4c9d1d8f1cd78940")] | ||
[DataRow(".gitmodules", ShaProp, "d8ebdc0b3c1d5240d4fc1c4cd3728ff561e714ad")] | ||
[DataRow("README.txt", ShaProp, "74b157c3bfd2f24323c3bc6e5e96639a424f157f")] | ||
[DataRow("sm_added_and_uncommitted", ShaProp, "")] | ||
[DataRow("sm_changed_file", ShaProp, "8a303a1d530d9d4e9f31002d4c9d1d8f1cd78940")] | ||
[DataRow("sm_changed_head", ShaProp, "8a303a1d530d9d4e9f31002d4c9d1d8f1cd78940")] | ||
[DataRow("sm_changed_index", ShaProp, "8a303a1d530d9d4e9f31002d4c9d1d8f1cd78940")] | ||
[DataRow("sm_changed_untracked_file", ShaProp, "8a303a1d530d9d4e9f31002d4c9d1d8f1cd78940")] | ||
[DataRow("sm_missing_commits", ShaProp, "8a303a1d530d9d4e9f31002d4c9d1d8f1cd78940")] | ||
[DataRow("sm_missing_commits_detached", ShaProp, "8a303a1d530d9d4e9f31002d4c9d1d8f1cd78940")] | ||
[DataRow("sm_unchanged", ShaProp, "8a303a1d530d9d4e9f31002d4c9d1d8f1cd78940")] | ||
[DataRow("sm_unchanged_detached", ShaProp, "8a303a1d530d9d4e9f31002d4c9d1d8f1cd78940")] | ||
public void RootFolderCommit(string path, string property, string value) | ||
{ | ||
Assert.IsNotNull(_repo); | ||
var result = _repo.GetProperties([property], path); | ||
Assert.IsNotNull(result); | ||
if (result.TryGetValue(property, out var actual)) | ||
{ | ||
Assert.AreEqual(value, actual); | ||
} | ||
else | ||
{ | ||
Assert.AreEqual(value, string.Empty); | ||
} | ||
} | ||
|
||
[TestMethod] | ||
[DataRow("sm_added_and_uncommitted\\file_to_modify", ShaProp, "e9a899083a7e2b25d7a41e69463ce083bf9ef6ef")] | ||
[DataRow("sm_changed_file\\file_to_modify", ShaProp, "e9a899083a7e2b25d7a41e69463ce083bf9ef6ef")] | ||
[DataRow("sm_changed_head\\file_to_modify", ShaProp, "2ab664114c928551863c33d694965c79b6b75144")] | ||
[DataRow("sm_changed_index\\file_to_modify", ShaProp, "e9a899083a7e2b25d7a41e69463ce083bf9ef6ef")] | ||
[DataRow("sm_changed_untracked_file\\file_to_modify", ShaProp, "e9a899083a7e2b25d7a41e69463ce083bf9ef6ef")] | ||
[DataRow("sm_missing_commits\\file_to_modify", ShaProp, "8e623bcf5aeceb8af7c0f0b22b82322f6c82fd4b")] | ||
[DataRow("sm_missing_commits_detached\\file_to_modify", ShaProp, "8e623bcf5aeceb8af7c0f0b22b82322f6c82fd4b")] | ||
[DataRow("sm_unchanged\\file_to_modify", ShaProp, "e9a899083a7e2b25d7a41e69463ce083bf9ef6ef")] | ||
[DataRow("sm_unchanged_detached\\file_to_modify", ShaProp, "e9a899083a7e2b25d7a41e69463ce083bf9ef6ef")] | ||
public void SubmoduleFilesCommit(string path, string property, string value) | ||
{ | ||
Assert.IsNotNull(_repo); | ||
var result = _repo.GetProperties([property], path); | ||
Assert.IsNotNull(result); | ||
if (result.TryGetValue(property, out var actual)) | ||
{ | ||
Assert.AreEqual(value, actual); | ||
} | ||
else | ||
{ | ||
Assert.AreEqual(value, string.Empty); | ||
} | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
extensions/GitExtension/FileExplorerGitIntegration.UnitTest/SandboxHelper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
using Serilog; | ||
|
||
namespace FileExplorerGitIntegration.UnitTest; | ||
|
||
internal sealed class SandboxHelper | ||
{ | ||
private readonly Serilog.ILogger _log = Log.ForContext("SourceContext", nameof(SandboxHelper)); | ||
|
||
private readonly Dictionary<string, string> _renames = new() | ||
{ | ||
{ "dot-git", ".git" }, | ||
{ "dot-gitmodules", ".gitmodules" }, | ||
}; | ||
|
||
public DirectoryInfo ResourcesDirectory { get; private set; } | ||
|
||
public DirectoryInfo DeployedDirectory { get; private set; } | ||
|
||
public SandboxHelper() | ||
{ | ||
var parentDir = Directory.GetParent(typeof(SandboxHelper).Assembly.Location) ?? throw new InvalidOperationException("Could not obtain resources directory for sandbox repos"); | ||
ResourcesDirectory = new DirectoryInfo(Path.Combine(parentDir.FullName, "resources")); | ||
DeployedDirectory = Directory.CreateTempSubdirectory("SandboxHelper."); | ||
} | ||
|
||
public void Cleanup() | ||
{ | ||
try | ||
{ | ||
Directory.Delete(DeployedDirectory.FullName, true); | ||
} | ||
catch (Exception ex) | ||
{ | ||
_log.Warning(ex, $"Failed to delete temp directory {DeployedDirectory.FullName}"); | ||
throw; | ||
} | ||
} | ||
|
||
public string CreateSandbox(string directory) | ||
{ | ||
var source = new DirectoryInfo(Path.Combine(ResourcesDirectory.FullName, directory)); | ||
var target = new DirectoryInfo(Path.Combine(DeployedDirectory.FullName, directory)); | ||
CopyRecursive(source, target); | ||
|
||
return target.FullName; | ||
} | ||
|
||
private void CopyRecursive(DirectoryInfo source, DirectoryInfo target) | ||
{ | ||
foreach (var dir in source.GetDirectories()) | ||
{ | ||
CopyRecursive(dir, target.CreateSubdirectory(FixName(dir.Name))); | ||
} | ||
|
||
foreach (var file in source.GetFiles()) | ||
{ | ||
file.CopyTo(Path.Combine(target.FullName, FixName(file.Name))); | ||
} | ||
} | ||
|
||
private string FixName(string name) | ||
{ | ||
_renames.TryGetValue(name, out var newName); | ||
return newName ?? name; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
extensions/GitExtension/FileExplorerGitIntegration.UnitTest/resources/.gitattributes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* binary | ||
.gitattributes diff | ||
.gitignore diff | ||
config diff | ||
resources_readme.txt diff |
4 changes: 4 additions & 0 deletions
4
extensions/GitExtension/FileExplorerGitIntegration.UnitTest/resources/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
COMMIT_EDITMSG | ||
exclude | ||
logs/ | ||
description |
3 changes: 3 additions & 0 deletions
3
extensions/GitExtension/FileExplorerGitIntegration.UnitTest/resources/resources_readme.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
The folders under "resources" are Git repositories that have had ".git" renamed to "dot-git" and ".gitmodules" renamed to "dot-gitmodules". | ||
|
||
This makes Git treat them as normal files so they can be checked in. SandboxHelper will rename them back to ".git" and ".gitmodules" when it needs to "clone" the repos for testing. |
3 changes: 3 additions & 0 deletions
3
extensions/GitExtension/FileExplorerGitIntegration.UnitTest/resources/submodules/README.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
This is a submodule test repo. | ||
It has various submodules in different states. | ||
Inspired by unit tests in libgit2. |
Empty file.
1 change: 1 addition & 0 deletions
1
...nsions/GitExtension/FileExplorerGitIntegration.UnitTest/resources/submodules/dot-git/HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ref: refs/heads/main |
1 change: 1 addition & 0 deletions
1
...s/GitExtension/FileExplorerGitIntegration.UnitTest/resources/submodules/dot-git/ORIG_HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3e1e770f7c28e87cbb3ee0c1541e3417c84a0708 |
34 changes: 34 additions & 0 deletions
34
...ions/GitExtension/FileExplorerGitIntegration.UnitTest/resources/submodules/dot-git/config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[core] | ||
repositoryformatversion = 0 | ||
filemode = false | ||
bare = false | ||
logallrefupdates = true | ||
symlinks = false | ||
ignorecase = true | ||
[submodule "sm_changed_file"] | ||
url = E:/Repos/GitHub/devhome/extensions/GitExtension/FileExplorerGitIntegration.UnitTest/resources/submodules_target | ||
active = true | ||
[submodule "sm_missing_commits"] | ||
url = E:/Repos/GitHub/devhome/extensions/GitExtension/FileExplorerGitIntegration.UnitTest/resources/submodules_target | ||
active = true | ||
[submodule "sm_changed_head"] | ||
url = E:/Repos/GitHub/devhome/extensions/GitExtension/FileExplorerGitIntegration.UnitTest/resources/submodules_target | ||
active = true | ||
[submodule "sm_changed_index"] | ||
url = E:/Repos/GitHub/devhome/extensions/GitExtension/FileExplorerGitIntegration.UnitTest/resources/submodules_target | ||
active = true | ||
[submodule "sm_changed_untracked_file"] | ||
url = E:/Repos/GitHub/devhome/extensions/GitExtension/FileExplorerGitIntegration.UnitTest/resources/submodules_target | ||
active = true | ||
[submodule "sm_unchanged"] | ||
url = E:/Repos/GitHub/devhome/extensions/GitExtension/FileExplorerGitIntegration.UnitTest/resources/submodules_target | ||
active = true | ||
[submodule "sm_unchanged_detached"] | ||
url = E:/Repos/GitHub/devhome/extensions/GitExtension/FileExplorerGitIntegration.UnitTest/resources/submodules_target | ||
active = true | ||
[submodule "sm_missing_commits_detached"] | ||
url = E:/Repos/GitHub/devhome/extensions/GitExtension/FileExplorerGitIntegration.UnitTest/resources/submodules_target | ||
active = true | ||
[submodule "sm_added_and_uncommitted"] | ||
url = E:/temp/resources/submodules_target | ||
active = true |
1 change: 1 addition & 0 deletions
1
...GitExtension/FileExplorerGitIntegration.UnitTest/resources/submodules/dot-git/description
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Unnamed repository; edit this file 'description' to name the repository. |
Binary file added
BIN
+974 Bytes
...sions/GitExtension/FileExplorerGitIntegration.UnitTest/resources/submodules/dot-git/index
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
...itExtension/FileExplorerGitIntegration.UnitTest/resources/submodules/dot-git/info/exclude
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# git ls-files --others --exclude-from=.git/info/exclude | ||
# Lines that start with '#' are comments. | ||
# For a project mostly in C, the following would be a good set of | ||
# exclude patterns (uncomment them if you want to use them): | ||
# *.[oa] | ||
# *~ |
1 change: 1 addition & 0 deletions
1
...s/GitExtension/FileExplorerGitIntegration.UnitTest/resources/submodules/dot-git/info/refs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
8a303a1d530d9d4e9f31002d4c9d1d8f1cd78940 refs/heads/main |
1 change: 1 addition & 0 deletions
1
...itIntegration.UnitTest/resources/submodules/dot-git/modules/sm_added_and_uncommitted/HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ref: refs/heads/main |
14 changes: 14 additions & 0 deletions
14
...Integration.UnitTest/resources/submodules/dot-git/modules/sm_added_and_uncommitted/config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[core] | ||
repositoryformatversion = 0 | ||
filemode = false | ||
bare = false | ||
logallrefupdates = true | ||
symlinks = false | ||
ignorecase = true | ||
worktree = ../../../sm_added_and_uncommitted | ||
[remote "origin"] | ||
url = E:/temp/resources/submodules_target | ||
fetch = +refs/heads/*:refs/remotes/origin/* | ||
[branch "main"] | ||
remote = origin | ||
merge = refs/heads/main |
1 change: 1 addition & 0 deletions
1
...ration.UnitTest/resources/submodules/dot-git/modules/sm_added_and_uncommitted/description
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Unnamed repository; edit this file 'description' to name the repository. |
Binary file added
BIN
+225 Bytes
...tIntegration.UnitTest/resources/submodules/dot-git/modules/sm_added_and_uncommitted/index
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
...ation.UnitTest/resources/submodules/dot-git/modules/sm_added_and_uncommitted/info/exclude
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# git ls-files --others --exclude-from=.git/info/exclude | ||
# Lines that start with '#' are comments. | ||
# For a project mostly in C, the following would be a good set of | ||
# exclude patterns (uncomment them if you want to use them): | ||
# *.[oa] | ||
# *~ |
3 changes: 3 additions & 0 deletions
3
...egration.UnitTest/resources/submodules/dot-git/modules/sm_added_and_uncommitted/info/refs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
8bc132afeabc5cbf67bdaf4f92c3e391472a27dc refs/heads/main | ||
8bc132afeabc5cbf67bdaf4f92c3e391472a27dc refs/remotes/origin/HEAD | ||
8bc132afeabc5cbf67bdaf4f92c3e391472a27dc refs/remotes/origin/main |
Binary file added
BIN
+1.38 KB
...t/resources/submodules/dot-git/modules/sm_added_and_uncommitted/objects/info/commit-graph
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
...UnitTest/resources/submodules/dot-git/modules/sm_added_and_uncommitted/objects/info/packs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
P pack-d3b1b7cf66ad317ab08fb781dba8d8ae68e1b200.pack | ||
P pack-ffa30a089fdbfcfdaaea163fd2f9710ef01a00cf.pack | ||
|
Binary file added
BIN
+1.07 KB
...s/sm_added_and_uncommitted/objects/pack/pack-d3b1b7cf66ad317ab08fb781dba8d8ae68e1b200.idx
Binary file not shown.
Binary file added
BIN
+56 Bytes
...m_added_and_uncommitted/objects/pack/pack-d3b1b7cf66ad317ab08fb781dba8d8ae68e1b200.mtimes
Binary file not shown.
Binary file added
BIN
+41 Bytes
.../sm_added_and_uncommitted/objects/pack/pack-d3b1b7cf66ad317ab08fb781dba8d8ae68e1b200.pack
Binary file not shown.
Binary file added
BIN
+56 Bytes
...s/sm_added_and_uncommitted/objects/pack/pack-d3b1b7cf66ad317ab08fb781dba8d8ae68e1b200.rev
Binary file not shown.
Binary file added
BIN
+1.46 KB
...s/sm_added_and_uncommitted/objects/pack/pack-ffa30a089fdbfcfdaaea163fd2f9710ef01a00cf.idx
Binary file not shown.
Binary file added
BIN
+1.43 KB
.../sm_added_and_uncommitted/objects/pack/pack-ffa30a089fdbfcfdaaea163fd2f9710ef01a00cf.pack
Binary file not shown.
Binary file added
BIN
+112 Bytes
...s/sm_added_and_uncommitted/objects/pack/pack-ffa30a089fdbfcfdaaea163fd2f9710ef01a00cf.rev
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
...ration.UnitTest/resources/submodules/dot-git/modules/sm_added_and_uncommitted/packed-refs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# pack-refs with: peeled fully-peeled sorted | ||
8bc132afeabc5cbf67bdaf4f92c3e391472a27dc refs/heads/main | ||
8bc132afeabc5cbf67bdaf4f92c3e391472a27dc refs/remotes/origin/main |
1 change: 1 addition & 0 deletions
1
...st/resources/submodules/dot-git/modules/sm_added_and_uncommitted/refs/remotes/origin/HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ref: refs/remotes/origin/main |
Empty file.
1 change: 1 addition & 0 deletions
1
...erGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_file/FETCH_HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
8bc132afeabc5cbf67bdaf4f92c3e391472a27dc not-for-merge branch 'main' of ../../submodules_target |
1 change: 1 addition & 0 deletions
1
...ExplorerGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_file/HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ref: refs/heads/main |
1 change: 1 addition & 0 deletions
1
...rerGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_file/ORIG_HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
e9a899083a7e2b25d7a41e69463ce083bf9ef6ef |
11 changes: 11 additions & 0 deletions
11
...plorerGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_file/config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[core] | ||
repositoryformatversion = 0 | ||
filemode = false | ||
bare = false | ||
logallrefupdates = true | ||
symlinks = false | ||
ignorecase = true | ||
worktree = ../../../sm_changed_file | ||
[remote "origin"] | ||
url = ../../submodules_target | ||
fetch = +refs/heads/*:refs/remotes/origin/* |
1 change: 1 addition & 0 deletions
1
...rGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_file/description
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Unnamed repository; edit this file 'description' to name the repository. |
Binary file added
BIN
+225 Bytes
...xplorerGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_file/index
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
...GitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_file/info/exclude
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# git ls-files --others --exclude-from=.git/info/exclude | ||
# Lines that start with '#' are comments. | ||
# For a project mostly in C, the following would be a good set of | ||
# exclude patterns (uncomment them if you want to use them): | ||
# *.[oa] | ||
# *~ |
2 changes: 2 additions & 0 deletions
2
...rerGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_file/info/refs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
8bc132afeabc5cbf67bdaf4f92c3e391472a27dc refs/heads/main | ||
8bc132afeabc5cbf67bdaf4f92c3e391472a27dc refs/remotes/origin/main |
Binary file added
BIN
+1.38 KB
...n.UnitTest/resources/submodules/dot-git/modules/sm_changed_file/objects/info/commit-graph
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
...egration.UnitTest/resources/submodules/dot-git/modules/sm_changed_file/objects/info/packs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
P pack-d3b1b7cf66ad317ab08fb781dba8d8ae68e1b200.pack | ||
P pack-ffa30a089fdbfcfdaaea163fd2f9710ef01a00cf.pack | ||
|
Binary file added
BIN
+1.07 KB
...it/modules/sm_changed_file/objects/pack/pack-d3b1b7cf66ad317ab08fb781dba8d8ae68e1b200.idx
Binary file not shown.
Binary file added
BIN
+56 Bytes
...modules/sm_changed_file/objects/pack/pack-d3b1b7cf66ad317ab08fb781dba8d8ae68e1b200.mtimes
Binary file not shown.
Binary file added
BIN
+41 Bytes
...t/modules/sm_changed_file/objects/pack/pack-d3b1b7cf66ad317ab08fb781dba8d8ae68e1b200.pack
Binary file not shown.
Binary file added
BIN
+56 Bytes
...it/modules/sm_changed_file/objects/pack/pack-d3b1b7cf66ad317ab08fb781dba8d8ae68e1b200.rev
Binary file not shown.
Binary file added
BIN
+1.46 KB
...it/modules/sm_changed_file/objects/pack/pack-ffa30a089fdbfcfdaaea163fd2f9710ef01a00cf.idx
Binary file not shown.
Binary file added
BIN
+1.43 KB
...t/modules/sm_changed_file/objects/pack/pack-ffa30a089fdbfcfdaaea163fd2f9710ef01a00cf.pack
Binary file not shown.
Binary file added
BIN
+112 Bytes
...it/modules/sm_changed_file/objects/pack/pack-ffa30a089fdbfcfdaaea163fd2f9710ef01a00cf.rev
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
...rGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_file/packed-refs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# pack-refs with: peeled fully-peeled sorted | ||
8bc132afeabc5cbf67bdaf4f92c3e391472a27dc refs/heads/main | ||
8bc132afeabc5cbf67bdaf4f92c3e391472a27dc refs/remotes/origin/main |
Empty file.
1 change: 1 addition & 0 deletions
1
...tIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_head/COMMIT_EDITMSG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Committing a change to submodule |
1 change: 1 addition & 0 deletions
1
...erGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_head/FETCH_HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
8bc132afeabc5cbf67bdaf4f92c3e391472a27dc not-for-merge branch 'main' of ../../submodules_target |
1 change: 1 addition & 0 deletions
1
...ExplorerGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_head/HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ref: refs/heads/main |
1 change: 1 addition & 0 deletions
1
...rerGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_head/ORIG_HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4bb90658751b1d839ee1277368998be69deacca5 |
11 changes: 11 additions & 0 deletions
11
...plorerGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_head/config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[core] | ||
repositoryformatversion = 0 | ||
filemode = false | ||
bare = false | ||
logallrefupdates = true | ||
symlinks = false | ||
ignorecase = true | ||
worktree = ../../../sm_changed_head | ||
[remote "origin"] | ||
url = ../../submodules_target | ||
fetch = +refs/heads/*:refs/remotes/origin/* |
1 change: 1 addition & 0 deletions
1
...rGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_head/description
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Unnamed repository; edit this file 'description' to name the repository. |
Binary file added
BIN
+225 Bytes
...xplorerGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_head/index
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
...GitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_head/info/exclude
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# git ls-files --others --exclude-from=.git/info/exclude | ||
# Lines that start with '#' are comments. | ||
# For a project mostly in C, the following would be a good set of | ||
# exclude patterns (uncomment them if you want to use them): | ||
# *.[oa] | ||
# *~ |
2 changes: 2 additions & 0 deletions
2
...rerGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_head/info/refs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
2ab664114c928551863c33d694965c79b6b75144 refs/heads/main | ||
8bc132afeabc5cbf67bdaf4f92c3e391472a27dc refs/remotes/origin/main |
Binary file added
BIN
+1.44 KB
...n.UnitTest/resources/submodules/dot-git/modules/sm_changed_head/objects/info/commit-graph
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
...egration.UnitTest/resources/submodules/dot-git/modules/sm_changed_head/objects/info/packs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
P pack-d3b1b7cf66ad317ab08fb781dba8d8ae68e1b200.pack | ||
P pack-9201333783142a88b5199747b1d4aa993fd8df68.pack | ||
|
Binary file added
BIN
+1.65 KB
...it/modules/sm_changed_head/objects/pack/pack-9201333783142a88b5199747b1d4aa993fd8df68.idx
Binary file not shown.
Binary file added
BIN
+2.08 KB
...t/modules/sm_changed_head/objects/pack/pack-9201333783142a88b5199747b1d4aa993fd8df68.pack
Binary file not shown.
Binary file added
BIN
+140 Bytes
...it/modules/sm_changed_head/objects/pack/pack-9201333783142a88b5199747b1d4aa993fd8df68.rev
Binary file not shown.
Binary file added
BIN
+1.07 KB
...it/modules/sm_changed_head/objects/pack/pack-d3b1b7cf66ad317ab08fb781dba8d8ae68e1b200.idx
Binary file not shown.
Binary file added
BIN
+56 Bytes
...modules/sm_changed_head/objects/pack/pack-d3b1b7cf66ad317ab08fb781dba8d8ae68e1b200.mtimes
Binary file not shown.
Binary file added
BIN
+41 Bytes
...t/modules/sm_changed_head/objects/pack/pack-d3b1b7cf66ad317ab08fb781dba8d8ae68e1b200.pack
Binary file not shown.
Binary file added
BIN
+56 Bytes
...it/modules/sm_changed_head/objects/pack/pack-d3b1b7cf66ad317ab08fb781dba8d8ae68e1b200.rev
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
...rGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_head/packed-refs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# pack-refs with: peeled fully-peeled sorted | ||
2ab664114c928551863c33d694965c79b6b75144 refs/heads/main | ||
8bc132afeabc5cbf67bdaf4f92c3e391472a27dc refs/remotes/origin/main |
Empty file.
1 change: 1 addition & 0 deletions
1
...rGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_index/FETCH_HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
8bc132afeabc5cbf67bdaf4f92c3e391472a27dc not-for-merge branch 'main' of ../../submodules_target |
1 change: 1 addition & 0 deletions
1
...xplorerGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_index/HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ref: refs/heads/main |
1 change: 1 addition & 0 deletions
1
...erGitIntegration.UnitTest/resources/submodules/dot-git/modules/sm_changed_index/ORIG_HEAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
e9a899083a7e2b25d7a41e69463ce083bf9ef6ef |
Oops, something went wrong.