Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 28 2019 22:21
    verdie-g opened #893
  • Jan 28 2019 10:19
    VonUniGE commented #340
  • Jan 28 2019 02:20
    rcywongaa closed #869
  • Jan 26 2019 20:30
    smkniazi edited #892
  • Jan 26 2019 20:29
    smkniazi edited #892
  • Jan 26 2019 20:28
    smkniazi opened #892
  • Jan 24 2019 10:38
    timotheecour edited #890
  • Jan 24 2019 09:20
    timotheecour opened #891
  • Jan 24 2019 00:29
    timotheecour opened #890
  • Jan 23 2019 22:09
    KeeReal commented #869
  • Jan 23 2019 20:58
    avivey opened #889
  • Jan 21 2019 23:26
    timotheecour commented #559
  • Jan 21 2019 21:16
    koutcher commented #559
  • Jan 21 2019 20:47
    koutcher commented #559
  • Jan 21 2019 18:39
    smancill commented #559
  • Jan 21 2019 07:11
    timotheecour commented #559
  • Jan 20 2019 17:01
    smancill commented #559
  • Jan 20 2019 10:25
    koutcher commented #559
  • Jan 20 2019 02:54
    timotheecour commented #559
  • Jan 20 2019 01:56
    timotheecour opened #888
Sebastian Gniazdowski
@psprint
So, :!make and browse freely :)
However, I would need also a way to jump to the errors, hence the question: how to search for "(error:|warning:)" directly via a key binding??
Johannes Altmanninger
@krobelus
@psprint @ is bound to :/^@@ in /etc/tigrc, you can the same for errors
though why would you execute Make in Tig, and not your editor?
Sebastian Gniazdowski
@psprint
Guys, I've submitted an interesting PR (#1139); autoscroll and colorizing of compiler errors in pager view, to implement this simple IDE-like round-trip error fixing use case: https://asciinema.org/a/430460. You can
have this functionality also without the PR, just without autoscroll and colorizing of errors, as described in the PR.
Sebastian Gniazdowski
@psprint
Is there a way to properly pass %(text) to a sh command, if it contains string like: undefined reference to SOME_VAR'? Notice and ', whose basically, apparently block any way of quoting the text, e.g.: !sh -c 'ls "%(text)"' will not work, nor will !sh -c "ls '%(text)'". So, is there a way to properly pass such %(text) to a sh command?
Johannes Altmanninger
@krobelus
@psprint yeah, I think you can do somehting like bind generic aa !sh -c 'printf "%s\n" "$1"' -- %(text)
Kai Hendry
@kaihendry
hi, when I am looking at a tig blame $filetname how do i preceed to go back and forth through the history?
Johannes Altmanninger
@krobelus
@kaihendry b pushes a new blame view on the stack, and , (:parent) goes back (pops from the stack)
Kai Hendry
@kaihendry
doesn't feel right, hmm
roman-khazanskii
@roman-khazanskii
Hello everyone! I was wondering if it's possible to make three-way view; log on the left, list of changed files in the middle and file changes on the right? That would mimic workflow from many git GUI tools (e.g. tortoisegit, gitkraken etc)
1 reply
Etorth
@etorth
image.png
anyone can help on this?
1 reply
I set the .tigrc as the messge, but still doesn't work
BuZZ-dEE
@buzz-dee:matrix.org
[m]
hi, is it possible to revert commits in tig, if yes, how?
1 reply
Gerep
@gerep
Is there a configuration to change how the usernames are displayed?
Ash Summers
@Asheboy_twitter
Am I going mad, or has the key binding to change the order (ascending/descending) of the refs view gone?
Ah, I bet you I've overwritten it with this External commands: I @sh -c "echo -n %(commit) | xclip -selection c"
Ash Summers
@Asheboy_twitter
Yup, that was it!
kaddkaka
@kaddkaka:matrix.org
[m]
Is there some way to search within the diffs of the commits from the main view? Currently the / search only takes the commits message into consideration, and when the diffview is open only the content of the diff of that specific commit is searched. Instead I would like to find the most recent commit that touched a variable called rare_banana. Can this be done in tig?
gseba
@gseba:matrix.org
[m]
Why isn't a .patch/.diff file automatically colorized in pager? After selecting it with enter in [status] view? The view opened after pressing the enter looks like the pager view, but it says "[stage]" in the bottom bar line. Could this be fixed?
It is pretty inconsistent with general rule of colorizing like diff everything that looks like a diff (for example, when invoking something like git diff | tig)
kaddkaka
@kaddkaka:matrix.org
[m]
Hah, I think I found a bug git log -G bananaramamama | tig and press q, the tig window will close, but the process will stay alive and hence not give you back the prompt. You can kill it with ctrl-c
Johannes Altmanninger
@krobelus
@kaddkaka:matrix.org if tig has exited, git log will receive EPIPE on the next write(2). Since there is no data to write, this won't happen, so it keeps running until it has finished searching. So this is an artifact of how Unix pipes work.
1 reply
Brian Spilner
@Try2Code
hi folks! is there a way to select/mark a bunch of commit and call 'git format-patch' on them via tig?
Brian Spilner
@Try2Code
bind generic <C-s> @git format-patch %(commit)~ is a good workaround for now ;-)
kaddkaka
@kaddkaka:matrix.org
[m]
From time to time, I'm a bit sad that tig lacks functionality from git, so I'm wondering. Has there been any consideration in supporting something git log | tig as an alternative way of starting tig? so That git log -S banana | tig could work, for example?
Or does anyone know of some other tool that just acts as a pager for git log output?
Edward E.
@cbrt64
@kaddkaka:matrix.org try tig -Sbanana. This also works for -G. (man git-log shows opt&arg concatenated like this, though including a space also works; I don't know specifically why tig won't as well.)
Brian Spilner
@Try2Code
@kaddkaka:matrix.org what's wrong with a simple shell alias: alias gtig='git log | tig' ?
1 reply
apromixately
@apromixately:matrix.org
[m]
hello
How do I set the graph format to v1 by default?
1 reply
I cannot figure out the right option name for the .tigrc
apromixately
@apromixately:matrix.org
[m]
Is this channel working?
kaddkaka
@kaddkaka:matrix.org
[m]
Very low activity
Sebastian Gniazdowski
@psprint
How to print an option value interactively? like, say: set -p commit-order
but that doesn't work of course, set has no -p option
Sebastian Gniazdowski
@psprint
Is there any way of binding to multiple keymaps in one go? Or at least to unbind in 2 or more keymaps?
Sebastian Gniazdowski
@psprint
I'm trying to create a key that works in reverse direction to parent (P by default AFAIR) – i.e.: that jumps to commit's descendant (i.e. up not down). I can get the required revision from git rev-list %(commit).. | head -n1, however this requires an external coommand like +sh -c "git rev-list …" while the command that jumps in the interface is an internal TIG action – the :goto {commit sha}. Is there any way to pass some variable as :goto's argument? Can you actually run any two actions from a binding, be it internal and/or external, alone, forgetting passing the argument/variable?
4 replies
Sebastian Gniazdowski
@psprint
Will be a patch that makes views more durable and switchable accepted? E.g.: that would implement currently not implemented yet documented back command?
1 reply
quazinode
@quazinode:matrix.org
[m]
Hi! How can I run tig like "git diff origin/master...HEAD"? To review files or commits before merge into master
I found solution to review "by commits" tig origin/master...HEAD --no-merges but maybe available some way to show diff from master with files at left and changes per selected file (or full file content) at right?
3 replies
quazinode
@quazinode:matrix.org
[m]
from Git Bash on windows it even doesn't work
quazinode
@quazinode:matrix.org
[m]
checked on WSL. Looks like just git diff with colors. No way to group changes per file at left column and content of file at right?
Like merge preview on gitlab. You can see diff between source branch and targer per file
Ben
@candhub
When I run tig, when I use the "tig --all" command, the History for all branch is displayed on the main page.
But if I simply run the tig with the "tig" command, only the history of the "checkout branch" is displayed on the main page.
Even after I executed the tig using "tig --all", if I continue to use it, only checkouted branch's History is displayed on the main page.
I always want to see the history of all branches on the main page.
How should I set it?
gseba
@gseba:matrix.org
[m]
krobelus-571a1436659847a7aff40217: where to hook up with %(sh …) substitution? Where to write code to?
krobelus-571a1436659847a7aff40217: I've written some IMO nice PRs, #1223 and (maybe a little controversial, but I think that every app should have a logging/dbug-logging facility) #1222. Do some of them have a chancee of merging? It's 22 days since I've submitted them… …
gseba
@gseba:matrix.org
[m]
Is it possible to pass some args to :view-diff to for example do as if <tig A..B or git diff A..B | tig has been issued?0
gseba
@gseba:matrix.org
[m]
Is it possible to issue a search upwards with a binding? something like: bind man Q ://query. instead of … … :/query?