Commit 07a065feeb70f520295e3e449c377060733dd980

Stefan Sperling 2021-11-20T21:22:53

switch tog ref view's sort order command key to "o" instead of "s" The letter "o" does not overlap with existing options of 'got ref' and is also used by mutt(1) for this purpose.

diff --git a/tog/tog.1 b/tog/tog.1
index 838d2ac..aa7df3d 100644
--- a/tog/tog.1
+++ b/tog/tog.1
@@ -452,7 +452,7 @@ view showing the tree resolved via the currently selected reference.
 Show object IDs for all non-symbolic references displayed in the
 .Cm ref
 view.
-.It Cm s
+.It Cm o
 Toggle display order of references between sort by name and sort by timestamp.
 .It Cm /
 Prompt for a search pattern and start searching for matching references.
diff --git a/tog/tog.c b/tog/tog.c
index d70c60a..67c8c72 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -6232,7 +6232,7 @@ input_ref_view(struct tog_view **new_view, struct tog_view *view, int ch)
 	case 'i':
 		s->show_ids = !s->show_ids;
 		break;
-	case 's':
+	case 'o':
 		s->sort_by_date = !s->sort_by_date;
 		err = got_reflist_sort(&tog_refs, s->sort_by_date ?
 		    got_ref_cmp_by_commit_timestamp_descending :