Skip to content

Commit

Permalink
Fix whitespace changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jjk2673 committed Oct 6, 2020
1 parent acd0ceb commit 5f2be3c
Show file tree
Hide file tree
Showing 2 changed files with 434 additions and 434 deletions.
162 changes: 81 additions & 81 deletions Kudu.Contracts/SourceControl/IRepository.cs
Original file line number Diff line number Diff line change
@@ -1,81 +1,81 @@

namespace Kudu.Core.SourceControl
{
public interface IRepository : IFileFinder
{
string CurrentId { get; }

string RepositoryPath { get; }

RepositoryType RepositoryType { get; }

/// <summary>
/// Determines if a valid repository exists at that location.
/// </summary>
bool Exists { get; }

/// <summary>
/// Initialize a new repository using the given configuration.
/// </summary>
void Initialize();

ChangeSet GetChangeSet(string id);
void AddFile(string path);

/// <summary>
/// Commits new, modified and deleted files to the repository.
/// </summary>
/// <returns>True if one or more files were added to a changeset</returns>
bool Commit(string message, string authorName, string emailAddress, string commitId = null);
void Update(string id);
void Update();
void Push();

/// <summary>
/// Attempts to fetch from the remote repository without resulting in any merge conflicts.
/// </summary>
void FetchWithoutConflict(string remote, string branchName);

void Clean();

/// <summary>
/// Updates sub repositories \ sub modules linked to this repository
/// </summary>
void UpdateSubmodules();

/// <summary>
/// Removes any physical lock files added to the repository that might prevent source control operations.
/// </summary>
/// <remarks></remarks>
void ClearLock();

/// <summary>
/// Creates a new branch or resets an existing branch at the given starting point.
/// </summary>
/// <param name="branchName">The name of the branch</param>
/// <param name="startPoint">The starting point of the branch.</param>
void CreateOrResetBranch(string branchName, string startPoint);

/// <summary>
/// Rebases a branch against master
/// </summary>
/// <returns>Returns true if branch is up to date with respect to master or false if updates from master were applied.</returns>
bool Rebase(string branchName);

/// <summary>
/// Aborts an ongoing rebase operation.
/// </summary>
void RebaseAbort();

/// <summary>
/// Updates the HEAD of master to be that of the HEAD or another branch.
/// </summary>
/// <param name="source">The source branch used to update master.</param>
void UpdateRef(string source);

/// <summary>
/// Indicates whether a given branch contains a given commit.
/// </summary>
bool DoesBranchContainCommit(string branch, string commit);
}
}

namespace Kudu.Core.SourceControl
{
public interface IRepository : IFileFinder
{
string CurrentId { get; }

string RepositoryPath { get; }

RepositoryType RepositoryType { get; }

/// <summary>
/// Determines if a valid repository exists at that location.
/// </summary>
bool Exists { get; }

/// <summary>
/// Initialize a new repository using the given configuration.
/// </summary>
void Initialize();

ChangeSet GetChangeSet(string id);
void AddFile(string path);

/// <summary>
/// Commits new, modified and deleted files to the repository.
/// </summary>
/// <returns>True if one or more files were added to a changeset</returns>
bool Commit(string message, string authorName, string emailAddress, string commitId = null);
void Update(string id);
void Update();
void Push();

/// <summary>
/// Attempts to fetch from the remote repository without resulting in any merge conflicts.
/// </summary>
void FetchWithoutConflict(string remote, string branchName);

void Clean();

/// <summary>
/// Updates sub repositories \ sub modules linked to this repository
/// </summary>
void UpdateSubmodules();

/// <summary>
/// Removes any physical lock files added to the repository that might prevent source control operations.
/// </summary>
/// <remarks></remarks>
void ClearLock();

/// <summary>
/// Creates a new branch or resets an existing branch at the given starting point.
/// </summary>
/// <param name="branchName">The name of the branch</param>
/// <param name="startPoint">The starting point of the branch.</param>
void CreateOrResetBranch(string branchName, string startPoint);

/// <summary>
/// Rebases a branch against master
/// </summary>
/// <returns>Returns true if branch is up to date with respect to master or false if updates from master were applied.</returns>
bool Rebase(string branchName);

/// <summary>
/// Aborts an ongoing rebase operation.
/// </summary>
void RebaseAbort();

/// <summary>
/// Updates the HEAD of master to be that of the HEAD or another branch.
/// </summary>
/// <param name="source">The source branch used to update master.</param>
void UpdateRef(string source);

/// <summary>
/// Indicates whether a given branch contains a given commit.
/// </summary>
bool DoesBranchContainCommit(string branch, string commit);
}
}
Loading

0 comments on commit 5f2be3c

Please sign in to comment.