diff options
author | Edward Thomson <ethomson@microsoft.com> | 2013-10-02 07:04:31 +0400 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2013-12-04 02:36:58 +0400 |
commit | 974ad9980cc7e7fec53ebf9999c30637396f9843 (patch) | |
tree | fa09bc45c0e2764f395b48b9258f3904cad052fa /LibGit2Sharp/FileStatus.cs | |
parent | b51570e8b34e36902b409b8af164190559aae4ca (diff) |
Introduce renames in status
Renames in status require more detailed data than simply paths, in
order to collect old path, new path and similarity data. Use
git_status_list to collect this data and use a new StatusEntry to
store it.
Diffstat (limited to 'LibGit2Sharp/FileStatus.cs')
-rw-r--r-- | LibGit2Sharp/FileStatus.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/LibGit2Sharp/FileStatus.cs b/LibGit2Sharp/FileStatus.cs index bf6975d0..08fa73f6 100644 --- a/LibGit2Sharp/FileStatus.cs +++ b/LibGit2Sharp/FileStatus.cs @@ -36,7 +36,7 @@ namespace LibGit2Sharp /// <summary> /// The renaming of a file has been promoted from the working directory to the Index. A previous version exists in the Head. /// </summary> - Renamed = (1 << 3), /* GIT_STATUS_INDEX_RENAMED */ + RenamedInIndex = (1 << 3), /* GIT_STATUS_INDEX_RENAMED */ /// <summary> /// A change in type for a file has been promoted from the working directory to the Index. A previous version exists in the Head. @@ -64,6 +64,11 @@ namespace LibGit2Sharp TypeChanged = (1 << 10), /* GIT_STATUS_WT_TYPECHANGE */ /// <summary> + /// The file has been renamed in the working directory. The previous version at the previous name exists in the Index. + /// </summary> + RenamedInWorkDir = (1 << 11), /* GIT_STATUS_WT_RENAMED */ + + /// <summary> /// The file is <see cref="Untracked"/> but its name and/or path matches an exclude pattern in a <c>gitignore</c> file. /// </summary> Ignored = (1 << 14), /* GIT_STATUS_IGNORED */ |