summaryrefslogtreecommitdiff
path: root/advice.h
diff options
context:
space:
mode:
authorVictoria Dye <vdye@github.com>2022-03-15 01:49:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-03-15 01:51:56 (GMT)
commite86ec71d20d14861e4a3d047800d3ea3099c946d (patch)
tree1be721f5bc59d44756050af50202c042e41aaaad /advice.h
parent1a4874565fa3b6668042216189551b98b4dc0b1b (diff)
downloadgit-e86ec71d20d14861e4a3d047800d3ea3099c946d.zip
git-e86ec71d20d14861e4a3d047800d3ea3099c946d.tar.gz
git-e86ec71d20d14861e4a3d047800d3ea3099c946d.tar.bz2
reset: revise index refresh advice
Update the advice describing index refresh from "enumerate unstaged changes" to "refresh the index." Describing 'refresh_index(...)' as "enumerating unstaged changes" is not fully representative of what an index refresh is doing; more generally, it updates the properties of index entries that are affected by outside-of-index state, e.g. CE_UPTODATE, which is affected by the file contents on-disk. This distinction is relevant to operations that read the index but do not refresh first - e.g., 'git read-tree' - where a stale index may cause incorrect behavior. In addition to changing the advice message, use the "advise" function to print advice. Signed-off-by: Victoria Dye <vdye@github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'advice.h')
0 files changed, 0 insertions, 0 deletions