Commit Graph

21 Commits

Author SHA1 Message Date
Lewis Russell
0180dfd7ae Refactor diff code
- Simplify external diff code and make it's api consistent with FFI diff.
- Move diff code into separate modules diff_ext and diff_ffi.
2021-07-21 16:09:20 +01:00
Lewis Russell
b685aa405f Refactor cli 2021-07-21 13:38:41 +01:00
Lewis Russell
b49ac38d85 Dirty fix for #263 2021-07-16 15:45:35 +01:00
Lewis Russell
288fb8536c Improvements to preview_hunk()
- Add title the hunk preview
- Keep hunk preview open when navigating hunks
2021-07-09 15:48:38 +01:00
snezhniylis
1302780c20 Fix missing commit description if there's no empty line after title 2021-07-08 09:00:19 +01:00
Lewis Russell
f523ef2c69 Add toggle_word_diff()
Resolves #235
2021-07-07 13:59:44 +01:00
Andreas Palm
ee0e8b4abc Show status message when navigating hunks
Highlight 'No more hunks' as WarningMsg

Added configuration option 'show_hunk_navigation_messages'

added nav_hunk option navigation_message with default of shortmess S value

Revert config changes

Latest build
2021-07-05 16:36:40 +01:00
Lewis Russell
e5f2ff6b6d Re-add 'full' argument to blame_line()
Fixes #241
2021-07-04 20:04:05 +01:00
Lewis Russell
d22de18f9d Rework testsuite
- Make tests more asyn friendly and remove most of the magic sleeps
- Break up into multiple files
- Bypass cmake
2021-06-23 11:41:48 +01:00
Lewis Russell
486f262864 Migrate to plenary async2 2021-06-21 15:25:48 +01:00
Lewis Russell
3b303ecba3 Update after change_base 2021-06-19 16:30:56 +01:00
Lewis Russell
e9b6e441d7 diffthis: Don't diff if 'git show' errors 2021-06-17 17:09:54 +01:00
Lewis Russell
a88ab78c55 Move more code out of gitsigns.tl 2021-06-15 16:24:35 +01:00
Sindre T. Strøm
a2a8f2eb59 feat: Stage all hunks in selected range.
Type definitions.

Implement range for reset_hunk. Fix create_patch. Update docs.

Note on the `create_patch` fix: The block header generated by this
function was previously not considering changes made by previously
processed hunks. This was causing patches to be applied incorrectly when
staging multiple hunks.

Update lua files.

Un-async reset_hunk.

Store user provided range in var. Adjustments based on feedback.

Updated lua files.

Removed unused import.
2021-06-15 15:48:39 +01:00
Lewis Russell
3a2cbc7f6f Replace word diff implementation with FFI version 2021-06-11 22:12:45 +01:00
Lewis Russell
08af1011fc Add word diff to hunk preview 2021-06-08 17:50:13 +01:00
Andreas Palm
3326e3028a Respect options.wrap param 2021-06-06 19:00:28 +01:00
Lewis Russell
82c73bde98 Show loading popup if blame takes too long 2021-06-02 15:17:42 +01:00
Lewis Russell
8fca536e06 Simplify reset_buffer() 2021-06-01 14:42:26 +01:00
Lewis Russell
25f5c0dc2e Add get_actions()
Return a list of all the available actions for the current line.

Resolves #179
2021-05-30 11:05:00 +01:00
Lewis Russell
6f9ffb94b4 Refactor gitsigns.tl
- Break into separate files
- Should slightly improve startup time.
- Removed update() from public API
2021-05-29 11:23:11 +01:00