fakerr / git-recall Goto Github PK
View Code? Open in Web Editor NEWAn interactive way to peruse your git history from the terminal
License: MIT License
An interactive way to peruse your git history from the terminal
License: MIT License
In rxvt-unicode 9.22 on FreeBSD 11.0 (using zsh and /bin/sh) git recall prints the commits, but hitting j/k/Up/Down just prints out the same commits once more. No commit is marked like in the gif at any time. Tab has a similar effect of partial reprint of the lines.
As this is essentially a simpler version of https://github.com/jonas/tig, it would be for glorious benefit of all perhaps to have a Prior Art section, and tell people about this tool, too.
As the code only looks at presence of .git, it seems limited. Can't do git recall from nested directories.
Escape characters (at least newline \n
) in the diff view of git-recall
seem to be interpreted rather than echoed literally. It's easiest to show with an example:
Expected behavior (output of git diff
):
- char write_char = buf[write_len++];
+ const char write_char = buf[write_len++];
- if (write_char == '\n') {
+ if (write_char == CHAR_LF) {
Actual behavior (using git reacall
, after selecting a diff SHA and pressing enter):
- char write_char = buf[write_len++];
+ const char write_char = buf[write_len++];
- if (write_char == '
') {
+ if (write_char == CHAR_LF) {
This behavior occurs on v1.1.2
(haven't used any earlier versions, so unsure if this is a regression or not).
System: macOS 10.12.1
When expanding one of the git commits with tab and closing it again the following error is shown:
sed: illegal option -- r various tweaks (3 days ago) <myname>
usage: sed script [-Ealn] [-i extension] [file ...] ago) <myname>
Instead of getting help, I get this message:
No manual entry for git-recall
See 'man 7 undocumented' for help when manual pages are not available.
git recall -h
and git-recall --help
works, though
git-recall 1.2.4
git version 2.7.4 on Ubuntu 16.04.4 LTS
Would love if this could be passed a single file to git-recall on.
System: macOS 10.12.1
I can run git-recall but I cannot move up and down the commit list with the arrow keys. The j/k keys do work correctly.
I installed it through npm but when i try to run git recall i get the following error
abort: the program lesskey is not installed. Make sure to install it before running git-recall
it might be a good idea to keep the standard git-log bahavior and just pass arguments to git log instead of limiting the functionality and setting non-standard default values like it's done for -d and -a.
I can see the need for --abbrev-commit
and --pretty=format:'${GIT_FORMAT}'
but otherwise it would be nice to make it behave like git-log does with its
git log [<options>] [<revision range>] [[--] <path>...]
scheme.
If you insist on keeping the default behavior as it is right now, it would at least be nice to be able to pass arguments to git log. I think it would simplify the program a lot.
git recall --total
Let's say I want to run on the root folder of all my git projects, can it be done?
maybe you love this one: https://github.com/so-fancy/diff-so-fancy and use that in this project
Installed git-hlog by copying the script to /usr/local/bin and chmod u+x
on it.
The command works,
Navigated to a folder with a git repo with history, typed:
git hlog -d 10
It shows me commits from the last 10 days. However, there is a warning at the top of the output:
/usr/local/bin/git-hlog: line 134: lesskey: command not found
I cannot navigate down the commits with the arrow keys whatsoever. On top of that, hitting tab
expands the commit but overlaps everything in the window (zsh or bash exhibit the same behavior in the vanilla Terminal app on mac).
Quitting out prints this to terminal:
rm: /Users/kevinquillen/.lsh_less_keys_tmp: No such file or directory
Doing which lesskey
results in lesskey not found
which is likely why this isn't working for me at the moment.
Looks like a great tool otherwise and would love to get this working!
$ git recall -a
results in :
The contributor "Noop" did nothing during this period.
Any ideas ?
Hi there,
Is it possible to disable line wrapping on the log output? During my usage, I've found merge commits in particular have longer commit titles which are occasionally wrapping. This makes the log more difficult to read/navigate.
Fantastic tool, use this every day ๐
This may be related to the previous issue. But git recall
is not working on my repository. You can checkout the repository here and try it:
I expect git recall -a "all"
to display what is shown in the gif
. However, all I get is:
`The contributor ".*" did nothing during this period.
OS: Mac OS 10.11.6
Bash: 3.2.57
[email protected]
Pressing tab on a commit only duplicates the 'commit row' below the line that I pressed tab upon.
Expected: Upon pressing tab, the expanded commit information should show below the current selected commit.
$ git-recall
abort: the program lesskey is not installed. Make sure to install it before running git-recall
I'm getting this error:
abort: the program lesskey is not installed. Make sure to install it before running git-recall
How dow I install lesskey? can't seem to find a way to install it
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.