tog/tog.c


Log

Author Commit Date CI Message
Christian Weisgerber 6879ba42 2020-10-01T15:15:22 do not treat the -h and -V flags as errors When run with the -h or -V option, output the help or version text to stdout and exit with success (0). Only write usage and help information to stderr and exit with error (1) if there is a mistake in the command syntax. tweak and ok stsp
Christian Weisgerber 9814e6a3 2020-09-27T14:55:18 prefer the BSD extension to reset getopt over the GNU one Sadly there is no portable way to reset getopt(3). BSD: optind = 1; optreset = 1; GNU: optind = 0; ok stsp
Stefan Sperling 48cae60d 2020-09-22T00:03:02 make dangling symbolic references show up in 'got ref -l' Storing a resolved ID for each reference list item was a bad idea. This ID cannot be resolved if a symbolic references points to a reference which does not exist. Such symrefs were skipped by got ref -l as a result. Just let users of reference lists resolve the IDs as needed.
Christian Weisgerber b46c1e04 2020-09-20T22:22:04 Print newline to clear the bottom line when tog exits. When a curses(3)-based application exits, the cursor is positioned at the start of the bottom line, and the shell will issue the new prompt there. However, the bottom line may still contain remnants of the curses screen. This is only noticeable on terminals that do not switch to/from an alternate screen buffer. ok stsp
Stefan Sperling ae6a6978 2020-08-09T21:56:11 speed up 'tog diff' get_filestream_info() a bit With this, 'tog diff' is able to display clang 10 commits. However, such huge diffs still take a rather long time to open. get_filestream_info() is a hack. Ideally, diff line-offset information needed by tog should be part of the result of the diff operation, rather than forcing tog to calculate line offsets during a post-processing step.
Stefan Sperling 7510f233 2020-08-09T20:37:53 simplify resource cleanup upon errors in get_filestream_info()
Stefan Sperling 0dc7faa9 2020-08-09T20:33:12 fix double-free when quitting tog's diff view; found by ofree at /home/stsp/src/got/tog/tog.c:3415 3415 free(s->line_offsets); (gdb) bt msg=0x80e2a4cd87e "chunk is already free %p") at /usr/src/lib/libc/stdlib/malloc.c:300 check=1) at /usr/src/lib/libc/stdlib/malloc.c:1070 clear=0, check=<optimized out>, argsz=0) at /usr/src/lib/libc/stdlib/malloc.c:1431 at /usr/src/lib/libc/stdlib/malloc.c:1488 at /home/stsp/src/got/tog/tog.c:3415 at /home/stsp/src/got/tog/tog.c:518 at /home/stsp/src/got/tog/tog.c:954 at /home/stsp/src/got/tog/tog.c:2728 at /home/stsp/src/got/tog/tog.c:5683 (gdb)
Tracey Emery 369eef86 2020-08-09T17:41:46 fix some memory leaks in tog
Stefan Sperling 528c17dd 2020-07-31T13:01:24 use a more precise regex for color-highlighting 'commit' lines in 'tog log'
Stefan Sperling 0587e10c 2020-07-23T14:21:28 add symlink support to 'got blame' and 'tog blame'
Stefan Sperling 0d6c6ee3 2020-05-20T17:37:29 make 'got/tog tree' show symlink targets like 'ls -lF' does: link@ -> target
Stefan Sperling 0208f208 2020-05-05T09:53:57 show a list of paths changed in a commit with 'got log -P', and in tog requested by matthieu@
Stefan Sperling 79cc719f 2020-04-24T16:31:55 filter out "remote/*/HEAD" references in tog log view
Stefan Sperling d2ad595c 2020-04-09T10:48:58 fix "searching..." displayed in tog log view while merely scrolling down
Stefan Sperling f9686aa5 2020-03-27T09:35:53 show 'searching...' during 'tog log' search even if no new commits are loaded
Stefan Sperling f9967bca 2020-03-27T09:21:24 display "no matches found" if no commit matches a 'tog log' search
Stefan Sperling 8f4ed634 2020-03-26T20:40:55 display "no more matches" indicator if 'tog log' search cannot find any
Stefan Sperling 7c1452c1 2020-03-26T17:14:23 make 'tog log' consistently scroll one page upon page-down key (found by naddy)
Christian Weisgerber 1831ac02 2020-03-23T16:39:24 Subtract the status line from the number of lines to page up/down in the log view. ok stsp@
Stefan Sperling ee85c5e8 2020-02-29T11:13:12 map 'tog path' to 'tog log path' if possible; requested by mpi@
Stefan Sperling a2f4a359 2020-02-28T19:37:37 properly free cmd_argv in tog's main() function
Stefan Sperling dfd6c250 2020-02-28T19:36:57 fix typo in comment; found by mpi@
Christian Weisgerber 09b5bff8 2020-02-23T16:28:39 switch "tog diff" repository path argument to a new -r option
Christian Weisgerber a273ac94 2020-02-23T16:28:39 fix "tog diff object1 object2" by actually extracting the repository path from the work tree
Christian Weisgerber ea025d1d 2020-02-22T20:29:17 add ^B/^F key bindings for page up/down in the "blame" and "tree" views
Stefan Sperling 6962eb72 2020-02-20T15:11:59 unify formatting of common code in tog log, blame, and tree
Stefan Sperling e4a0e26d 2020-02-20T15:08:56 prevent possible double-free introduced in previous commit
Stefan Sperling 55cccc34 2020-02-20T14:58:02 add an optional path argument to 'tog tree'
Stefan Sperling f135c941 2020-02-20T14:58:02 use a common helper function to get the path from argv in tog log and blame
Stefan Sperling cb1159f8 2020-02-19T13:41:31 fix misplaced tog search prompt in split-screen views
Stefan Sperling bb63914a 2020-02-17T21:57:56 make tmp dir location a compile-time setting and change gotweb's tmp dir We are not sure whether a gotweb package can own /var/www/tmp on OpenBSD. Moving gotweb's tmp dir to /var/www/got/tmp sidesteps that issue.
Stefan Sperling 74283ab8 2020-02-07T18:02:57 switch 'tog tree' repository path argument to a new -r option
Stefan Sperling a0975128 2020-02-07T11:02:00 fix 'got blame' and 'tog blame' on files added on worktree's current branch
Stefan Sperling 82954512 2020-02-03T18:10:18 revert 6b8a2b8fcd99c4365b1aa9513c0f0149beac2491; it broke 'n' (search next) In the log view, 'n' sometimes failed to search for the next matching commit and tog dead-locked. So a yield or mutex unlock/lock is required for search to work. Perhaps we need a different fix?
Tracey Emery f5404e4e 2020-02-02T17:35:10 replace improperly removed break
Tracey Emery 3ffacbe1 2020-02-02T17:10:40 goto done and remove erroneous break
Tracey Emery f44b1f58 2020-02-02T16:56:40 enable searching in tog diff view ok stsp
Tracey Emery 5465d566 2020-02-01T17:32:31 prepare local variable in open_diff_view and close_diff_view for diff view searching ok stsp
Stefan Sperling f43793a4 2020-01-27T22:14:23 fix a bug where 'got log PATH' failed to map PATH into the repository The problem occured inside /usr/src/sys due to the /sys symlink, where /usr/src was a got work tree. If a work tree is present we already have the right path so checking the disk is pointless.
Stefan Sperling b672a97a 2020-01-27T18:36:37 make 'tog log' show first-parent history by default; add -b option and B key
Stefan Sperling 91b8c405 2020-01-25T11:41:24 tweak default colors for directories and symlinks in 'tog tree'
Martin Pieuchot b55e96cf 2020-01-19T14:35:58 Remove redundant error check after got_object_id_by_path(). An error code is always returned when the oid is NULL.
Martin Pieuchot a93813fa 2020-01-19T14:18:07 Remove double lock in error path.
Martin Pieuchot 6b8a2b8f 2020-01-19T13:46:59 Remove unnecessary pthread_yield(3). In the two cases a context switch isn't necessary as the thread isn't blocked and doesn't need to wait for its sibling.
Stefan Sperling 71a27632 2020-01-15T19:26:49 move match_object_id() into the library; supersedes got_repo_resolve_commit_arg
Stefan Sperling 7a1d6b72 2020-01-15T19:10:46 fix 'tog log -c' with tags
Stefan Sperling 61266923 2020-01-14T18:44:19 fix suspending and resuming tog with Ctrl-Z and fg; issue reported by naddy@
Stefan Sperling f13374f4 2020-01-14T14:28:08 fix 'tog tree' usage displayed in error case (patch by naddy@)
Stefan Sperling 6586ea88 2020-01-13T16:12:32 unbreak got and tog commands by disabling GNU extensions in getopt_long(3)
Stefan Sperling e801a566 2020-01-13T16:01:04 update usage
Stefan Sperling 83cd27f8 2020-01-13T15:59:47 make got and tog accept a --version argument; -V option is a bit obscure prompted by a question from tedu@
Stefan Sperling c5b78334 2020-01-12T20:40:31 make 'tog log PATH' fail again when a non-existent path is specified
Stefan Sperling 33cbf02b 2020-01-12T17:10:45 fix switching to tog's tree view when logging a path; reported by naddy@
Stefan Sperling 5aa81393 2020-01-06T19:38:23 add copyright year for files already touched in 2020
Stefan Sperling 3d509237 2020-01-04T18:25:28 simplify got_commit_graph_open()
Stefan Sperling ee780d5c 2020-01-04T15:44:13 remove GOT_ERR_ITER_NEED_MORE; the commit graph now fetches internally instead
Stefan Sperling 6db9f7f6 2019-12-10T11:42:22 always show numeric dates in ISO-8601/xkcd-1179 format ok millert tracey sthen
Stefan Sperling 56e0773d 2019-11-28T02:32:58 convert tree entries from SIMPLEQ to an array
Stefan Sperling dee2c213 2019-11-13T10:49:06 fix tog display issue caused by Tab in commit messages; reported by mpi@
Stefan Sperling 52e88aae 2019-11-08T19:52:37 use less empty padding space after author name in 'tog log'
Stefan Sperling 11b20872 2019-11-08T14:28:58 add colors for 'tog log' and 'tog blame'
Stefan Sperling bddb1296 2019-11-08T13:51:18 more s/line_color/color/g in tog
Stefan Sperling f26dddb7 2019-11-08T13:50:01 rename tog_line_color to just tog_color
Stefan Sperling 1d7fe5cd 2019-11-08T13:47:51 support the terminal's "default" color in tog color schemes
Stefan Sperling c0b01bdb 2019-11-08T13:41:11 add color support to 'tog tree'
Stefan Sperling 7169caa2 2019-11-08T13:15:38 mark a tog-internal function as static
Stefan Sperling 6d17833f 2019-11-08T13:10:36 add color support to 'tog diff'
Stefan Sperling 6570a66d 2019-11-08T11:18:29 make 'tog log' show abbreviated commit IDs if the window is large enough suggested by landry@
Stefan Sperling 9ba1d308 2019-10-21T09:11:19 always show the input path when realpath(3) returns an error
Stefan Sperling 7ca04879 2019-10-19T11:06:47 fix a tog log view performance bug when lots of commits are loaded
Stefan Sperling 13add988 2019-10-15T11:12:56 fix interlocking between tog log and man threads during search
Stefan Sperling 63035f9f 2019-10-06T19:24:31 add -w (ignore whitespace) option to 'got diff'
Stefan Sperling 50284065 2019-10-04T15:09:09 fix bogus error return introduced in previous commit
Stefan Sperling e6b23735 2019-10-04T15:01:59 update reference list when 'tog log' view is refreshed with Ctrl+L
Stefan Sperling 1cae65b4 2019-09-22T15:27:48 missing error checks in tog(1); found by jj@ with scan-build
Hiltjo Posthuma e10c916e 2019-09-15T13:53:41 change "calloc" to "strdup" for strdup() NULL return value
Stefan Sperling 27a741e5 2019-09-11T17:29:21 tog: fix cosmetic display issues involving \n and TABs
Stefan Sperling c9956ddf 2019-09-08T18:13:54 use author name/email from ~/.gitconfig if GOT_AUTHOR is not set
Stefan Sperling 239f6369 2019-09-08T13:07:54 fix line-wrap for lines spanning the terminal in tog diff view
Stefan Sperling 12314ad4 2019-08-31T09:38:14 make 'tog blame' release its work tree lock before the main loop
Stefan Sperling 2fc00ff4 2019-08-31T09:34:36 make 'tog log' release its work tree lock before the main loop
Hiltjo Posthuma fd9f4a2d 2019-08-28T18:45:16 tog: mbs2ws: fix sizeof of element for memory allocation
Stefan Sperling 63c5ca5d 2019-08-24T20:56:15 detect and ignore Git submodules
Stefan Sperling b8bad2ba 2019-08-23T20:01:06 make 'got tag -l' list tags by time stamp in descending order
Stefan Sperling 29606af7 2019-08-23T18:42:27 allow got_ref_list() to restrict returned refs to a particular namespace
Stefan Sperling fc06ba56 2019-08-22T12:07:56 support blame cancellation in 'tog blame' view
Stefan Sperling 6fb7cd11 2019-08-22T11:33:50 add cancellation support to commit graph and 'got blame'
Stefan Sperling e6209546 2019-08-22T11:12:24 untie cancel callback declaration from the work tree
Stefan Sperling 7d049c18 2019-08-22T00:42:19 tog: fix search prompt location in split-screen view
Stefan Sperling 51fe7530 2019-08-19T11:53:01 have tog blame refresh display more often while annotation is in progress
Stefan Sperling b02560ec 2019-08-19T09:54:52 fix number of lines accounted for during blame
Stefan Sperling 0d8ff7d5 2019-08-15T00:15:32 rename got_blame_incremental() to got_blame()
Stefan Sperling 09867e48 2019-08-13T17:01:23 properly parse timestamps in commit objects as UTC (patch by Hiltjo Posthuma)
Stefan Sperling 5943eee2 2019-08-13T16:58:34 strip Git GPG signatures from log messages
Stefan Sperling 5d844a1e 2019-08-13T15:41:46 don't attempt to parse Git's "leightweight" tags as real tag objects
Stefan Sperling 52b5abe1 2019-08-13T10:21:12 make 'tog log' display tags in addition to branch references
Stefan Sperling 848d6979 2019-08-12T13:43:17 annotate symlinks with @ in 'got tree' and 'tog tree'
Stefan Sperling 8d0fe45a 2019-08-12T11:31:27 fix crashes in tog when blame returns no results on a file fix for underlying blame bug still pending...
Stefan Sperling 83ce39e3 2019-08-12T10:58:33 tog: plug memory leak in blame_tree_entry()
Stefan Sperling c4843652 2019-08-12T10:55:58 fix double-free when blame view is closed in error path; found by otto@