jj/docs
Yuya Nishihara 9a5b001d58 templater: add SizeHint type to represent revset.count_estimate() value
We'll probably add binary comparison operators at some point, but this patch
also adds size_hint.zero() method. Otherwise, we'll have to write
"if(x.upper() && x.upper() == 0, ..)" to deal with None.

The resulting "branch list" template will look like:
```
separate(", ",
  if(!ref.tracking_ahead_count().zero(),
    if(ref.tracking_ahead_count().exact(),
      "ahead by " ++ ref.tracking_ahead_count().exact() ++ " commits",
      "ahead by at least " ++ ref.tracking_ahead_count().lower() ++ " commits")),
  if(!ref.tracking_behind_count().zero(),
    if(ref.tracking_behind_count().exact(),
      "behind by " ++ ref.tracking_behind_count().exact() ++ " commits",
      "behind by at least " ++ ref.tracking_behind_count().lower() ++ " commits")),
)
```
2024-05-09 08:51:34 +09:00
..
design Fixes grammar issues in docs 2024-04-24 09:12:37 -07:00
technical docs: update description of conflicts to be about tree-level conflicts 2023-11-30 14:24:48 -08:00
branches.md docs: Replace some mentions of jj co with jj new. 2024-04-19 18:03:22 +02:00
cli-reference.md docs, CLI reference: use include-markdown instead of a symlink 2024-02-12 10:28:09 -08:00
code-of-conduct.md Replace contact method with addresses of active leads. 2023-11-28 13:48:22 -05:00
config.md config.md: advertise diffedit3 as an alternative to meld-3 diff editor 2024-05-08 11:38:41 -07:00
config.toml docs: document git.fetch and git.push config options 2024-02-09 12:03:42 -06:00
conflicts.md politics: delete references to Pijul 2024-04-14 13:16:08 -07:00
contributing.md fixed usage of old "checkout" command in contributing docs 2024-04-25 09:11:52 -07:00
FAQ.md docs: add FAQ for why to use new-then-amend over edit 2024-03-14 11:32:53 -07:00
filesets.md fileset, revset, templater: add support for single-quoted raw string literals 2024-04-25 11:14:33 +09:00
git-comparison.md rebase: add --insert-after and --insert-before options for --revisions 2024-04-29 14:19:09 +08:00
git-compatibility.md docs: update remaining references on "jj init --git-repo" 2024-02-28 09:03:16 +09:00
github.md cli: unblock "jj git init --colocate" in existing Git repo directory 2024-02-28 09:03:16 +09:00
glossary.md docs branches.md: insert definitions for related terms 2024-01-24 18:47:17 -08:00
index.md docs index.md: explain that the website sidebar may be hidden 2023-10-04 05:25:37 -07:00
install-and-setup.md docs: make "Arch Linux" a subheading under "Linux" 2024-04-24 09:22:51 -07:00
operation-log.md op_walk: add support for op_id+ (children) operator 2024-01-02 10:30:08 +09:00
related-work.md politics: delete references to Pijul 2024-04-14 13:16:08 -07:00
revsets.md fileset, revset, templater: add support for single-quoted raw string literals 2024-04-25 11:14:33 +09:00
sapling-comparison.md mkdocs: make MkDocs work with more GitHub-like list formatting 2023-11-03 19:15:37 -07:00
templates.md templater: add SizeHint type to represent revset.count_estimate() value 2024-05-09 08:51:34 +09:00
testimonials.md docs: Add a Testmonials page. 2024-02-25 14:20:33 +01:00
tutorial.md tutorial: edits to the diff editor explanation 2024-05-05 18:17:38 -07:00
windows.md working_copy: implement symlinks on windows with a helper function 2024-03-05 15:16:38 +08:00
working-copy.md docs: say that we support $GIT_DIR/info/exclude 2024-03-08 09:59:10 -08:00