Live data from Hacker News

Tig – Text-mode interface for Git

jonas.github.io

91–98 of 98 posts

Re: Tig – Text-mode interface for Git

#91
post #5

Tig is and has been my favorite utility for browsing git logs for years now. Thanks tig developers and contributors! It's handy to know that the arrow keys are used for browsing the log messages, while return followed by either pgup/pgdn or j/k are used for scrolling the contents of a log message. And it's easy to search logs with /. Tig is also theme-able. For instance with: curl -so ~/.tigrc ' https://raw.githubuse…

How often do you browse git logs? I see others also mentioning using git logs, but I really myself have not used it very often except maybe in some very edge cases and it is hard for me to imagine when it might be useful.

Re: Tig – Text-mode interface for Git

#92
post #69

As a longtime vim user it feels like if I actually wanted a TUI veneer over the git CLI I'm already quite familiar with, I'd prefer it be done within vim as an extension/plugin or something. Having some vim-like keybindings in non-vim tools is nice, but it's always a far cry from being vim . And personally I find it incredibly annoying when I'm in something vim-like enough to establish "I'm in vim" expectations and n…

Check out vim's `:terminal` and `:vertical terminal` commands. It uses vim's window split management to place an ordinary no-kidding pty-based terminal into the vim UI. Ctrl-W N goes to Normal mode for copy (but not paste), Ctrl-W moves around like normal.

Re: Tig – Text-mode interface for Git

#93
post #5

Tig is and has been my favorite utility for browsing git logs for years now. Thanks tig developers and contributors! It's handy to know that the arrow keys are used for browsing the log messages, while return followed by either pgup/pgdn or j/k are used for scrolling the contents of a log message. And it's easy to search logs with /. Tig is also theme-able. For instance with: curl -so ~/.tigrc ' https://raw.githubuse…

How often do you browse git logs? I see others also mentioning using git logs, but I really myself have not used it very often except maybe in some very edge cases and it is hard for me to imagine when it might be useful.

I think this might be one of those cases where improving the ergonomics of it greatly affects this sort of thing. I use magit[1] on emacs and I can pull up logs with 1-2 actions, and when used with a split-pane setup, navigating the logs on one pane (with keyboard-based navigation) instantly displays the commit (message and diffs) on the other pane. So I browse logs on an almost daily basis---not just of my colleagues' commits when I'm trying to familiarize myself with what's moved in the meantime, but also my own commits.

[1] https://magit.vc/

Re: Tig – Text-mode interface for Git

#94
post #5

Tig is and has been my favorite utility for browsing git logs for years now. Thanks tig developers and contributors! It's handy to know that the arrow keys are used for browsing the log messages, while return followed by either pgup/pgdn or j/k are used for scrolling the contents of a log message. And it's easy to search logs with /. Tig is also theme-able. For instance with: curl -so ~/.tigrc ' https://raw.githubuse…

How often do you browse git logs? I see others also mentioning using git logs, but I really myself have not used it very often except maybe in some very edge cases and it is hard for me to imagine when it might be useful.

Interesting comment! If one doesn't use the history part of revision control, why bother with revision control at all? Serious question. One could just do backups and skip the overhead of revision control.

To me the whole point of revision control is to examine who did what when and why.

Re: Tig – Text-mode interface for Git

#95

text-mode interface for Git Based on the comments here saying they love Tig, I know I'm missing something, but: doesn't Git provide a text interface (the `git` command) to Git? I'm not trying to be obtuse; I genuinely don't know what Tig provides that Git doesn't already do, but would love to know!

As a short analogy: ps vs. top

Re: Tig – Text-mode interface for Git

#98
post #94

Earlier quoted context omitted.

How often do you browse git logs? I see others also mentioning using git logs, but I really myself have not used it very often except maybe in some very edge cases and it is hard for me to imagine when it might be useful.

Interesting comment! If one doesn't use the history part of revision control, why bother with revision control at all? Serious question. One could just do backups and skip the overhead of revision control. To me the whole point of revision control is to examine who did what when and why.

Automated distributed versioned backups are no small feature.

That logs are useful is cool too.

Post reply on HN