Commit abdc3fc
Add hash_sha1_file()
Most callers of write_sha1_file_prepare() are only interested in the
resulting hash but don't care about the returned file name or the header.
This patch adds a simple wrapper named hash_sha1_file() which does just
that, and converts potential callers.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>1 parent ce91fc6 commit abdc3fc
File tree
5 files changed
+22
-34
lines changed5 files changed
+22
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1783 | 1783 | | |
1784 | 1784 | | |
1785 | 1785 | | |
1786 | | - | |
1787 | | - | |
1788 | 1786 | | |
1789 | 1787 | | |
1790 | 1788 | | |
| |||
1800 | 1798 | | |
1801 | 1799 | | |
1802 | 1800 | | |
1803 | | - | |
1804 | | - | |
| 1801 | + | |
1805 | 1802 | | |
1806 | 1803 | | |
1807 | 1804 | | |
| |||
1846 | 1843 | | |
1847 | 1844 | | |
1848 | 1845 | | |
1849 | | - | |
1850 | | - | |
| 1846 | + | |
1851 | 1847 | | |
1852 | 1848 | | |
1853 | 1849 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
| 347 | + | |
| 348 | + | |
353 | 349 | | |
354 | 350 | | |
355 | 351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1235 | 1235 | | |
1236 | 1236 | | |
1237 | 1237 | | |
1238 | | - | |
1239 | | - | |
1240 | 1238 | | |
1241 | 1239 | | |
1242 | 1240 | | |
1243 | | - | |
1244 | | - | |
| 1241 | + | |
1245 | 1242 | | |
1246 | 1243 | | |
1247 | 1244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1501 | 1501 | | |
1502 | 1502 | | |
1503 | 1503 | | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
1504 | 1513 | | |
1505 | 1514 | | |
1506 | 1515 | | |
| |||
1784 | 1793 | | |
1785 | 1794 | | |
1786 | 1795 | | |
1787 | | - | |
1788 | | - | |
1789 | 1796 | | |
1790 | 1797 | | |
1791 | 1798 | | |
| |||
1796 | 1803 | | |
1797 | 1804 | | |
1798 | 1805 | | |
1799 | | - | |
1800 | | - | |
1801 | | - | |
1802 | | - | |
| 1806 | + | |
| 1807 | + | |
1803 | 1808 | | |
1804 | 1809 | | |
1805 | 1810 | | |
| |||
1809 | 1814 | | |
1810 | 1815 | | |
1811 | 1816 | | |
1812 | | - | |
1813 | | - | |
1814 | 1817 | | |
1815 | 1818 | | |
1816 | 1819 | | |
| |||
1823 | 1826 | | |
1824 | 1827 | | |
1825 | 1828 | | |
1826 | | - | |
1827 | | - | |
1828 | | - | |
1829 | | - | |
| 1829 | + | |
| 1830 | + | |
1830 | 1831 | | |
1831 | 1832 | | |
1832 | 1833 | | |
| |||
1855 | 1856 | | |
1856 | 1857 | | |
1857 | 1858 | | |
1858 | | - | |
1859 | | - | |
1860 | | - | |
1861 | | - | |
1862 | | - | |
1863 | | - | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
1864 | 1862 | | |
1865 | 1863 | | |
1866 | 1864 | | |
| |||
0 commit comments