1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-08 04:04:22 +02:00
lazygit/pkg/i18n
Stefan Haller b35f8776e1 Warn when there are hunks with only added lines
The algorithm works by blaming the deleted lines, so if a hunk contains only
added lines, we can only hope that it also belongs in the same commit. Warn the
user about this.

Note: the warning might be overly agressive, we'll have to see if this is
annoying. The reason is that it depends on the diff context size whether added
lines go into their own hunk or are grouped together with other added or deleted
lines into one hunk. However, our algorithm uses a diff context size of 0,
because that makes it easiest to parse the diff; this results in hunks having
only added lines more often than what the user sees. For example, moving a line
of code down by two lines will likely result in a single hunk for the user, but
in two hunks for our algorithm. On the other hand, being this strict makes the
warning consistent. We could consider using the user's diff context size in the
algorithm, but then it would depend on the current context size whether the
warning appears, which could be confusing. Plus, it would make the algorithm
quite a bit more complicated.
2024-01-10 09:11:40 +01:00
..
chinese.go Add inline status for pushing/pulling/fast-forwarding branches 2023-10-08 18:45:36 +02:00
dutch.go Add inline status for pushing/pulling/fast-forwarding branches 2023-10-08 18:45:36 +02:00
english.go Warn when there are hunks with only added lines 2024-01-10 09:11:40 +01:00
i18n_test.go fix lint errors 2020-11-18 08:36:19 +11:00
i18n.go feat(i18n): add russian translation 2023-06-28 00:34:59 +06:00
japanese.go Implement a sort order menu for remote branches 2023-12-22 16:30:20 +09:00
korean.go Add inline status for pushing/pulling/fast-forwarding branches 2023-10-08 18:45:36 +02:00
polish.go Use WithWaitingStatus instead of WithLoaderPanel for pull/push/fetch 2023-09-20 13:30:49 +02:00
russian.go Replace copy SHA with copy subject on commit 'y s' 2024-01-03 02:19:39 +03:00
traditional_chinese.go Add inline status for pushing/pulling/fast-forwarding branches 2023-10-08 18:45:36 +02:00