From: András Gilyén Date: Mon, 09 Sep 2024 22:30:07 GMT Subject: [PATCH v2] gitk: new config options for wrapping and diff modes Message-ID: In-Reply-To: <909d2af2-9395-5b13-7049-097237826032@renyi.hu> Using gitk for tracking changes in large text files, which often have very long lines consisting of, e.g., a paragarph of an article, it is highly desirable to wrap the lines in the diff view and also to set the default diff mode to "Markup words" or "Color lines". There is a configurable option "wrapcomment" to make the comments wrap in gitk, and now an additional "wraplines" option is introduced for warpping lines in the source files. Similarly, an option "worddiffdefault" is introduced which sets the default diff view mode to "Markup words" or "Color lines". These options can be set by editing gitk's configuration file. The default behaviours are unchanged. The new options are documented in Documentation/gitk.txt, where the formerly undocumented feature "wrapcomment" also got explained, which was introduced by Commit f1b8629453 ([PATCH] gitk: Display commit messages with word wrap, 2006-05-15). Suggested-by: Ailin Nemui (https://www.spinics.net/lists/git/msg274761.html ) Signed-off-by: András P Gilyén --- I fixed a typo in the documentation and made some cosmetic edits to the patch in order to improve its readability. Documentation/gitk.txt | 26 ++++++++++++++++++++++++-- gitk-git/gitk | 18 +++++++++++++----- 2 files changed, 37 insertions(+), 7 deletions(-) diff --git a/Documentation/gitk.txt b/Documentation/gitk.txt index 35b3996029..82ff7e5370 100644 --- a/Documentation/gitk.txt +++ b/Documentation/gitk.txt @@ -161,10 +161,32 @@ If neither of the above exist then `$XDG_CONFIG_HOME/git/gitk` is created and used by default. If '$XDG_CONFIG_HOME' is not set it defaults to `$HOME/.config` in all cases. +The following are some options that are configurable by updating the contents +of the above configuration file. To set an option to a specific value add a +line containing "set