diff --git a/src/Commands/Checkout.cs b/src/Commands/Checkout.cs index dbab4947..1f169992 100644 --- a/src/Commands/Checkout.cs +++ b/src/Commands/Checkout.cs @@ -37,6 +37,11 @@ namespace SourceGit.Commands { return Exec(); } + public bool FileWithRevision(string file, string revision) { + Args = $"checkout {revision} -- \"{file}\""; + return Exec(); + } + public bool Files(List files) { StringBuilder builder = new StringBuilder(); builder.Append("checkout -f -q --"); diff --git a/src/Resources/Locales/en_US.xaml b/src/Resources/Locales/en_US.xaml index 854913f1..da900303 100644 --- a/src/Resources/Locales/en_US.xaml +++ b/src/Resources/Locales/en_US.xaml @@ -259,6 +259,7 @@ Prune remote dead branches File History + USE THIS VERSION CHANGE DISPLAY MODE Show as Grid diff --git a/src/Resources/Locales/zh_CN.xaml b/src/Resources/Locales/zh_CN.xaml index 9adfbe56..9eafebf9 100644 --- a/src/Resources/Locales/zh_CN.xaml +++ b/src/Resources/Locales/zh_CN.xaml @@ -258,6 +258,7 @@ 自动清理远程已删除分支 文件历史 + 使用该版本 切换变更显示模式 网格模式 diff --git a/src/Views/FileHistories.xaml b/src/Views/FileHistories.xaml index ad2a461a..27aa7ac3 100644 --- a/src/Views/FileHistories.xaml +++ b/src/Views/FileHistories.xaml @@ -131,7 +131,24 @@ - + + + + + + + + +