Show / Hide Table of Contents

Class PathHelpers.Git

Helper functions for directory structures within a Git repository.

Inheritance
System.Object
PathHelpers.Git
Namespace: Xamarin
Assembly: Xamarin.Helpers.dll
Syntax
public static class Git

Methods

| Improve this Doc View Source

FindRepositoryRootPath(String)

Finds the root directory of a git repository from a child path within.

Declaration
public static string FindRepositoryRootPath(string childPathInRepository)
Parameters
Type Name Description
System.String childPathInRepository
Returns
Type Description
System.String
Remarks

Throws System.IO.DirectoryNotFoundException if the root repository directory cannot be found.

| Improve this Doc View Source

FindRepositoryRootPathFromAssembly(Assembly)

Finds the root directory of a git repository from an assembly. If no assembly is provided, the calling assembly is implied.

Declaration
public static string FindRepositoryRootPathFromAssembly(Assembly assemblyInRepository = null)
Parameters
Type Name Description
System.Reflection.Assembly assemblyInRepository
Returns
Type Description
System.String
Remarks

Throws System.IO.DirectoryNotFoundException if the root repository directory cannot be found.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX