Skip to content

Commit

Permalink
Merge branch 'sr/maint-fast-import-tighten-option-parsing' into maint
Browse files Browse the repository at this point in the history
* sr/maint-fast-import-tighten-option-parsing:
  fast-import: fix option parser for no-arg options
  • Loading branch information
Junio C Hamano committed May 16, 2011
2 parents a8793d2 + 4cce4ef commit f704591
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fast-import.c
Original file line number Diff line number Diff line change
Expand Up @@ -3135,11 +3135,11 @@ static int parse_one_feature(const char *feature, int from_stream)
option_export_marks(feature + 13);
} else if (!strcmp(feature, "cat-blob")) {
; /* Don't die - this feature is supported */
} else if (!prefixcmp(feature, "relative-marks")) {
} else if (!strcmp(feature, "relative-marks")) {
relative_marks_paths = 1;
} else if (!prefixcmp(feature, "no-relative-marks")) {
} else if (!strcmp(feature, "no-relative-marks")) {
relative_marks_paths = 0;
} else if (!prefixcmp(feature, "force")) {
} else if (!strcmp(feature, "force")) {
force_update = 1;
} else if (!strcmp(feature, "notes") || !strcmp(feature, "ls")) {
; /* do nothing; we have the feature */
Expand Down

0 comments on commit f704591

Please sign in to comment.