Commit df351c6
unpack-trees: drop unused error_type parameters
The verify_clean_subdirectory() helper takes an error_type parameter
from the caller, but doesn't actually use it. Instead, when it calls
add_rejected_path() it passes NOT_UPTODATE_DIR, its own custom error
type which is more specific than what the caller provides. Likewise for
verify_clean_submodule(), which always passes WOULD_LOSE_SUBMODULE.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 6642969 commit df351c6
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1758 | 1758 | | |
1759 | 1759 | | |
1760 | 1760 | | |
1761 | | - | |
1762 | 1761 | | |
1763 | 1762 | | |
1764 | 1763 | | |
| |||
1769 | 1768 | | |
1770 | 1769 | | |
1771 | 1770 | | |
1772 | | - | |
1773 | 1771 | | |
1774 | 1772 | | |
1775 | 1773 | | |
| |||
1792 | 1790 | | |
1793 | 1791 | | |
1794 | 1792 | | |
1795 | | - | |
| 1793 | + | |
1796 | 1794 | | |
1797 | 1795 | | |
1798 | 1796 | | |
| |||
1888 | 1886 | | |
1889 | 1887 | | |
1890 | 1888 | | |
1891 | | - | |
| 1889 | + | |
1892 | 1890 | | |
1893 | 1891 | | |
1894 | 1892 | | |
| |||
0 commit comments