Skip to content

Commit 5b1b346

Browse files
committed
rename the option to match the tunable
also shorten the description lines
1 parent 88bcde9 commit 5b1b346

File tree

1 file changed

+10
-6
lines changed
  • opengrok-indexer/src/main/java/org/opengrok/indexer/index

1 file changed

+10
-6
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/index/Indexer.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -801,12 +801,16 @@ public static String[] parseOptions(String[] argv) throws ParseException {
801801
}
802802
});
803803

804-
parser.on("--trulyIncremental", "=on|off", ON_OFF, Boolean.class,
805-
"If truly incremental reindex is in effect, the set of files changed/deleted since the last ",
806-
"reindex is determined from history of the repositories. This needs history, history cache ",
807-
"and projects to be enabled. This should be much faster than the classic way of traversing ",
808-
"the directory structure. The default is on. If you need to e.g. index files untracked by ",
809-
"SCM, set this to off. Currently works only for Git.").
804+
parser.on("--historyBased", "=on|off", ON_OFF, Boolean.class,
805+
"If history based reindex is in effect, the set of files ",
806+
"changed/deleted since the last reindex is determined from history ",
807+
"of the repositories. This needs history, history cache and ",
808+
"projects to be enabled. This should be much faster than the ",
809+
"classic way of traversing the directory structure. ",
810+
"The default is on. If you need to e.g. index files untracked by ",
811+
"SCM, set this to off. Currently works only for Git.",
812+
"All repositories in a project need to support this in order ",
813+
"to be indexed using history.").
810814
execute(v -> cfg.setHistoryBasedReindex((Boolean) v));
811815

812816
parser.on("-U", "--uri", "=SCHEME://webappURI:port/contextPath",

0 commit comments

Comments
 (0)