aboutsummaryrefslogtreecommitdiff
path: root/sib-show
Commit message (Collapse)AuthorAgeFilesLines
* Update licenseHee-Suk Kim10 days1-1/+1
|
* Add LicenseHee-Suk Kim2026-08-051-0/+2
| | | | Signed-off-by: Hee-Suk Kim <[email protected]>
* Do not run rev-parse twice when running sib-show in sib-logHee-Suk Kim2026-08-041-3/+9
| | | | Signed-off-by: Hee-Suk Kim <[email protected]>
* Bash 3.2 <= compat (for macOS)Hee-Suk Kim2026-07-281-1/+1
| | | | Signed-off-by: Hee-Suk Kim <[email protected]>
* Add shopts mannually for each scriptsHee-Suk Kim2026-07-251-0/+3
| | | | Signed-off-by: Hee-Suk Kim <[email protected]>
* Change log format readability for emacs markdown-modeHee-Suk Kim2026-07-241-5/+1
| | | | Signed-off-by: Hee-Suk Kim <[email protected]>
* Change ls-trace format to <hash>/t<key>Hee-Suk Kim2026-07-231-4/+4
| | | | | | | | | By arraying the hash first, parsing became slightly easier (<hash> is the normalized value, <key> can be anything), and using \t as a separator allowed whitespace to be entered into <key> (although it is currently rejected). Signed-off-by: Hee-Suk Kim <[email protected]>
* sib-show: add -c flag, same as -k contentHee-Suk Kim2026-07-181-11/+13
| | | | | | Parse -k and -k KEY and -k HEAD is basically bad definition. Signed-off-by: Hee-Suk Kim <[email protected]>
* sib-switch: fix git ls-trace error printed for empty traceHee-Suk Kim2026-07-181-9/+14
| | | | Signed-off-by: Hee-Suk Kim <[email protected]>
* Prepare for release: add Makefile and dispatchHee-Suk Kim2026-07-171-1/+1
| | | | | | | | | | Similar to Git, scripts including the dispatcher sib are grouped into libexec/sib-core, and symlinks are created in bin/sib. Additionally, libexec/sib-core is added to the PATH when executing any script inside sib. I don't really see any downside to adding to the PATH and loading the script. It's clear. Signed-off-by: Hee-Suk Kim <[email protected]>
* sib-show: nit: update usageHee-Suk Kim2026-07-071-2/+3
| | | | Signed-off-by: Hee-Suk Kim <[email protected]>
* sib-show: implement -k <key>Hee-Suk Kim2026-06-071-0/+9
| | | | | | | Early return when -k given doesn't look ideal, but making it would more expensive. Think about it later maybe? Signed-off-by: Hee-Suk Kim <[email protected]>
* sib-show: drop parent printing and simplify codeHee-Suk Kim2026-06-071-15/+5
| | | | Signed-off-by: Hee-Suk Kim <[email protected]>
* sib-show: drop glowHee-Suk Kim2026-05-251-5/+3
| | | | | | | Again, let's think about complex things like rendering later. It is actually uncomfortable to read when Markdown is incomplete. Signed-off-by: Hee-Suk Kim <[email protected]>
* sib-show: replace grep with exact pattern matching using awkHee-Suk Kim2026-05-191-7/+5
| | | | | | | The existing implementation also filters out content in the middle of the key. Signed-off-by: Hee-Suk Kim <[email protected]>
* sib-show: drop jq dependancyHee-Suk Kim2026-05-191-10/+16
| | | | | | | Since sib json series internally call sib ls-trace and such anyway, doing it this way is much faster. Signed-off-by: Hee-Suk Kim <[email protected]>
* sib-show: simplify output renderingHee-Suk Kim2026-05-191-15/+8
| | | | | | It'll be best to think things like nice printing later. Signed-off-by: Hee-Suk Kim <[email protected]>
* Remove unneeded need_arg that didn't even work properlyHee-Suk Kim2026-05-191-2/+1
| | | | Signed-off-by: Hee-Suk Kim <[email protected]>
* sib-log: create single-output sib-show and change sib-log to use itHee-Suk Kim2026-05-191-0/+67
It seems to be slowing down a bit due to the fork cost, but doing it this way makes it easier to maintain the output format. Additionally configured the output format to iterate through the JSON and print everything except the content key. Git, on the other hand, seems to use `git show` and `git log` for output, but that will be an issue when optimizing later. Signed-off-by: Hee-Suk Kim <[email protected]>