Skip to content

Commit 5a7d41d

Browse files
avargitster
authored andcommitted
docs & comments: replace mentions of "git-add--interactive.perl"
Now that we've removed "git-add--interactive.perl" let's replace mentions of it with "add-interactive.c". In the case of the "git add" documentation we were using it as an example filename, so the mention wasn't wrong, but using a dead file is slightly confusing. The "borrowed" comment here likewise isn't wrong, but let's mention the successor file instead. In the case of pathspec.c the implied TODO item should refer to the current code (and the comment may not even be current, I didn't check). Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d21878f commit 5a7d41d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Documentation/git-add.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,15 +274,15 @@ status::
274274
------------
275275
staged unstaged path
276276
1: binary nothing foo.png
277-
2: +403/-35 +1/-1 git-add--interactive.perl
277+
2: +403/-35 +1/-1 add-interactive.c
278278
------------
279279
+
280280
It shows that foo.png has differences from HEAD (but that is
281281
binary so line count cannot be shown) and there is no
282282
difference between indexed copy and the working tree
283283
version (if the working tree version were also different,
284284
'binary' would have been shown in place of 'nothing'). The
285-
other file, git-add{litdd}interactive.perl, has 403 lines added
285+
other file, add-interactive.c, has 403 lines added
286286
and 35 lines deleted if you commit what is in the index, but
287287
working tree file has further modifications (one addition and
288288
one deletion).
@@ -303,7 +303,7 @@ like this:
303303
------------
304304
staged unstaged path
305305
1: binary nothing foo.png
306-
* 2: +403/-35 +1/-1 git-add--interactive.perl
306+
* 2: +403/-35 +1/-1 add-interactive.c
307307
------------
308308
+
309309
To remove selection, prefix the input with `-`

builtin/clean.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ static int parse_choice(struct menu_stuff *menu_stuff,
560560

561561
/*
562562
* Implement a git-add-interactive compatible UI, which is borrowed
563-
* from git-add--interactive.perl.
563+
* from add-interactive.c.
564564
*
565565
* Return value:
566566
*

pathspec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ static void NORETURN unsupported_magic(const char *pattern,
545545
}
546546
/*
547547
* We may want to substitute "this command" with a command
548-
* name. E.g. when add--interactive dies when running
548+
* name. E.g. when "git add -p" or "git add -i" dies when running
549549
* "checkout -p"
550550
*/
551551
die(_("%s: pathspec magic not supported by this command: %s"),

0 commit comments

Comments
 (0)