diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-06-06 08:30:44 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2023-06-07 12:48:56 +0200 |
commit | 1f42c8a387529ff055307ac49bd6a5fb397f1c9c (patch) | |
tree | 219c5696fd46e7f276a0237c0fb1b85edbafded5 /pkg/i18n | |
parent | e229e26fbe050eb4ba9ffed8970b3992590a3694 (diff) |
Allow discarding changes only from local commits
We use CommitFilesController also for the files of commits that we show
elsewhere, e.g. for branch commits, tags, or stashes. It doesn't make sense to
discard changes from those (for stashes it might be possible to implement it
somehow, but that would be a new feature), so we disallow it unless we are in
the local commits panel.
Diffstat (limited to 'pkg/i18n')
-rw-r--r-- | pkg/i18n/english.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index 34d33f1ab..b291a0058 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -265,6 +265,7 @@ type TranslationSet struct { ViewItemFiles string CommitFilesTitle string CheckoutCommitFile string + CanOnlyDiscardFromLocalCommits string DiscardOldFileChange string DiscardFileChangesTitle string DiscardFileChangesPrompt string @@ -955,6 +956,7 @@ func EnglishTranslationSet() TranslationSet { ViewItemFiles: "View selected item's files", CommitFilesTitle: "Commit files", CheckoutCommitFile: "Checkout file", + CanOnlyDiscardFromLocalCommits: "Changes can only be discarded from local commits", DiscardOldFileChange: "Discard this commit's changes to this file", DiscardFileChangesTitle: "Discard file changes", DiscardFileChangesPrompt: "Are you sure you want to discard this commit's changes to this file?", |