Showing 1 of 1 files from the diff.

@@ -87,16 +87,21 @@
Loading
87 87
88 88
  paths <- sort(paths)
89 89
  ui_paths <- map_chr(paths, ui_path)
90 -
  if (n > 20) {
91 -
    ui_paths <- c(ui_paths[1:20], "...")
90 +
  if (n > 10) {
91 +
    ui_paths <- c(ui_paths[1:10], "...")
92 92
  }
93 93
94 +
  if (n == 1) {
95 +
    file_hint <- "There is 1 uncommitted file:"
96 +
  } else {
97 +
    file_hint <- "There are {n} uncommitted files:"
98 +
  }
94 99
  ui_line(c(
95 -
    "There are {n} uncommitted files:",
100 +
    file_hint,
96 101
    paste0("* ", ui_paths)
97 102
  ))
98 103
99 -
  if (ui_yeah("Is it ok to commit them?")) {
104 +
  if (ui_yeah("Is it ok to commit {if (n == 1) 'it' else 'them'}?")) {
100 105
    git_commit(paths, message)
101 106
  }
102 107
  invisible()
Files Coverage
R 51.75%
Project Totals (64 files) 51.75%
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        target: auto
8
        threshold: 1%
9
        informational: true
10
    patch:
11
      default:
12
        target: auto
13
        threshold: 1%
14
        informational: true
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading