-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #730 from uni-bremen-agst/704-generate-a-codecity-…
…via-git-repository 704 generate a codecity via git repository Closes #704
- Loading branch information
Showing
140 changed files
with
2,359 additions
and
88 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
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
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
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
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,74 @@ | ||
namespace SEE.DataModel.DG | ||
{ | ||
/// <summary> | ||
/// Provides convenience extension properties for the VCS related attributes. | ||
/// </summary> | ||
public static class VCSExtensions | ||
{ | ||
/// <summary> | ||
/// The attribute name for the commitID.. | ||
/// </summary> | ||
public const string CommitIDAttribute = "CommitID"; | ||
|
||
/// <summary> | ||
/// Returns the commit ID of the <paramref name="graph"/>. | ||
/// </summary> | ||
/// <param name="graph">graph whose commit ID is requested</param> | ||
public static bool TryGetCommitID(this Graph graph, out string commitID) | ||
{ | ||
return graph.TryGetString(CommitIDAttribute, out commitID); | ||
} | ||
|
||
/// <summary> | ||
/// Sets the commit ID of the <paramref name="graph"/> to <paramref name="value"/> | ||
/// </summary> | ||
/// <param name="graph">graph whose commit ID is to be set</param> | ||
/// <param name="value">value to be set</param> | ||
public static void CommitID(this Graph graph, string value) | ||
{ | ||
graph.SetString(CommitIDAttribute, value); | ||
} | ||
|
||
/// <summary> | ||
/// Returns the commit ID of the <paramref name="graphElement"/>. | ||
/// </summary> | ||
/// <param name="graphElement">graph element whose commit ID is requested</param> | ||
public static bool TryGetCommitID(this GraphElement graphElement, out string commitID) | ||
{ | ||
return graphElement.ItsGraph.TryGetString(CommitIDAttribute, out commitID); | ||
} | ||
|
||
/// <summary> | ||
/// The attribute name for the repository path. | ||
/// </summary> | ||
public const string RepositoryPathAttribute = "RepositoryPath"; | ||
|
||
/// <summary> | ||
/// Returns the repository path of the <paramref name="graph"/>. | ||
/// </summary> | ||
/// <param name="graph">graph whose repository path is requested</param> | ||
public static bool TryGetRepositoryPath(this Graph graph, out string repositoryPath) | ||
{ | ||
return graph.TryGetString(RepositoryPathAttribute, out repositoryPath); | ||
} | ||
|
||
/// <summary> | ||
/// Sets the repository path of the <paramref name="graph"/> to <paramref name="value"/> | ||
/// </summary> | ||
/// <param name="graph">graph whose repository path is to be set</param> | ||
/// <param name="value">value to be set</param> | ||
public static void RepositoryPath(this Graph graph, string value) | ||
{ | ||
graph.SetString(RepositoryPathAttribute, value); | ||
} | ||
|
||
/// <summary> | ||
/// Returns the repository path of the <paramref name="graphElement"/>. | ||
/// </summary> | ||
/// <param name="graphElement">graph element whose repository path is requested</param> | ||
public static bool TryGetRepositoryPath(this GraphElement graphElement, out string repositoryPath) | ||
{ | ||
return graphElement.ItsGraph.TryGetString(RepositoryPathAttribute, out repositoryPath); | ||
} | ||
} | ||
} |
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 @@ | ||
fileFormatVersion: 2 | ||
guid: 80930361a53496148bfe4cb7cedd976e | ||
MonoImporter: | ||
externalObjects: {} | ||
serializedVersion: 2 | ||
defaultReferences: [] | ||
executionOrder: 0 | ||
icon: {instanceID: 0} | ||
userData: | ||
assetBundleName: | ||
assetBundleVariant: |
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
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
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
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
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
Oops, something went wrong.