Commits
- Commit:
2e2450f50c41d866e20dec2ad4d9eafa3c19f2ba
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: make patience the default diff algorithm
As discussed on IRC. It makes nicer diffs and the performance hit should
only be noticeable with the odd large diff. It might also be a motivator
in trying to speed up the patience implementation.
ok stsp@
- Commit:
c935fd512b9937ffefdd248a3a840d0530011a1e
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: show work tree base commit marker in log view
If tog is invoked in a work tree, prefix the base commit log message summary
line with a '*' if the work tree is up-to-date, and with a '~' if the base
commit is not up-to-date with respect to the branch tip or it contains mixed
commits. While here, plug a couple worktree leaks in cmd_ref() and cmd_tree().
ok stsp@
- Commit:
c4df265ebabf6993a1c217bb2bb59d5aeb3fe5e5
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: add support for commit keywords
Allow keywords as arguments to options and operands for the blame, diff, log,
and tree commands. Also, return 1 when exiting tog with error rather than 0
so regress can discern success from failure.
ok stsp@
- Commit:
d627976f5ceada12169aa74630bbc0fd9ce071b7
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: add horizontal scroll support to the tree view
Suggested by op. tog now supports hscroll in all views so move corresponding
keymap docs in tog(1) to global space (this was already the case in tog
runtime help). While here, remove some copypasta with a new subroutine to
handle hscroll input.
ok op@ and stsp@
- Commit:
7713cc5e4f5544e81909670d592e89526ed86c9b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sort ENVIRONMENT entries in got.1 and tog.1
ok jamsek
- Commit:
0b3f028dffa4ecc7aa72dc9132d53e9d056cc36f
- From:
- Mikhail <mp39590@gmail.com>
- Via:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: add mutt-like =/* keymaps as home/end aliases
Also, separate g/G from home/end in the manual and runtime help text as only
the former accept a prefixed count modifier. Based on initial diff from Mikhail.
ok stsp@
- Commit:
3bf00f2542ea6e7825f52c155e5f3f5fecb136e3
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'tog log' display the committer handle by default, '@' switches to author
People coming from CVS might not expect names of patch contributers to
show up in commit history listings, so make things easy for them.
discussed with op@
- Commit:
3b95caf0b7910e22d23ee16cd50fab25471e1e20
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
document global tog options earlier; suggested by op@
- Commit:
6a0a1bd407b4d06a6d003428daaa50cc2d92c6f9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync usage with reality
The -h and -V/--version flags must be given before the command; with
those flags the command is actually optional, but don't over-complicate
the usage string with these nitpicks.
ok/improvements stsp@
- Commit:
e19e72cd92d3e8ca6800a46a1c3d5992afc55ea4
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
improve documentation of the tog limit feature, previous doc was misleading
- Commit:
ec2a9698e29a1ee9152c8740cdce9603d84d224d
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: implement runtime help accessible via H,F1 keymaps
Original idea inspired from discussion with tb, tobhe, and stsp at g2k22:
display view-specific help, with option to toggle display of full key map
reference when {H,F1} is pressed again inside the help view.
Includes improvements suggested by stsp.
ok stsp@
- Commit:
568eae9578c8babb5be9eea6c85b9e016a6cdb29
- From:
- Mikhail <mp39590@gmail.com>
- Via:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: add new log view limit feature to filter commits
Use the & key map to enter a pattern with which to limit the displayed commits
to those matching the provided pattern; similar to less(1) and mutt's limit
feature. Includes various tweaks from op.
ok plus fixes from op@
- Commit:
5fc4f020b7640899b280b5090a906480ce67666e
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Omar Polo <op@omarpolo.com>
- Date:
use Xo/Xc in the man pages
Patch by Josiah Frentsos; ok kn@
- Commit:
827a167b34401bd6541b199377e4e6c68d643151
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Stefan Sperling <stsp@stsp.name>
- Date:
Group options in accordance with style(9)
patch by Josiah Frentsos
- Commit:
c7d5c43cafada3470647a8b876d489018002f713
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: keymaps to jump to next/prev file/hunk in the diff
Add () and {} key maps to navigate to the previous and next file or hunk in
the diff. This required changing Got's diff API to collect line type metadata
in addition to the line offsets already produced as prompted by stsp.
ok stsp@
- Commit:
94b80cfa87e0bfc8933b9e7614974209e87de290
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: add n{G,g} key map to jump to line n like less(1)
Available to all views; for example, 99g will navigate to line 99 in the file
if in a blame view or the 99th commit if in a log view. Includes improvements
suggested by naddy and stsp.
ok naddy@
- Commit:
5e98fb339b4588f8e07c12b9f9ace9dbdcc47592
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: uppercase alpha key maps that open new views
ok stsp@
- Commit:
05f04cdf3fa9619d7055f098b55f1633dbbf12c0
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: blame view keymap to open log of annotated line
As per stsp's TODO item: open a log view of the selected line with 'L'.
helped by and ok stsp@
- Commit:
2b3e6702748e05e788bfea21aa384af4352e859b
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: alias J and K to > and < keybindings for diff view
Use J and K to move to the next and previous commits, respectively, when the
diff is loaded from the log or blame views.
Patch by Mikhail
ok stsp@
- Commit:
10aab77fd5164e672b109e74278bc080a7546fb8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
tog: add key to toggle author/committer in log view
improvements and ok by jamsek and stsp
- Commit:
67d6e2c2d443318cc8e4ce198f9d9cb60c769093
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
tog man page: Be more precise when first introducing split layout terminology.
- Commit:
c23f71878534d77a74ed668a8081e6a2d7fc70b9
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
tog man page: improve spacing with a .Pp before global key bindings
- Commit:
2572d286b3fb3d35b340b4d1b251adfcf8cc6795
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
tog man page: tweak documentation of vertical/horizontal split for clarity
- Commit:
c0f61fa4e4ee942c16faa19eddc4b5362287b12c
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: enable moving to prev/next blame line in diff view
Blame/diff view counterpart of log/diff <,.> key maps to traverse commits
corresponding to each line of the annotated file from the diff view. Includes
fix from stsp@ to work while the file is still annotating.
ok stsp@
- Commit:
7532ccdaec478d70fa5e613b9cda974c132faa6d
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: make 'S' switch split mode irrespective of the view
Always switch internal split state and redraw view according to the
constraints of the new mode.
suggested by and ok stsp@