Commit 1a83e26
refs: include committer info in
The reference backends obtain the committer information from
`git_committer_info(0)` when adding a reflog. The upcoming patches
introduce support for migrating reflogs between the reference backends.
This requires an interface to creating reflogs, including custom
committer information.
Add a new field `committer_info` to the `ref_update` struct, which is
then used by the reference backends. If there is no `committer_info`
provided, the reference backends default to using
`git_committer_info(0)`. The field itself cannot be set to
`git_committer_info(0)` since the values are dynamic and must be
obtained right when the reflog is being committed.
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>ref_update struct1 parent df5d7a7 commit 1a83e26
File tree
4 files changed
+27
-11
lines changed- refs
4 files changed
+27
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1151 | 1151 | | |
1152 | 1152 | | |
1153 | 1153 | | |
| 1154 | + | |
1154 | 1155 | | |
1155 | 1156 | | |
1156 | 1157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1858 | 1858 | | |
1859 | 1859 | | |
1860 | 1860 | | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
1861 | 1864 | | |
1862 | 1865 | | |
1863 | 1866 | | |
| |||
1871 | 1874 | | |
1872 | 1875 | | |
1873 | 1876 | | |
1874 | | - | |
1875 | | - | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
1876 | 1881 | | |
1877 | 1882 | | |
1878 | 1883 | | |
| |||
1889 | 1894 | | |
1890 | 1895 | | |
1891 | 1896 | | |
1892 | | - | |
1893 | | - | |
| 1897 | + | |
1894 | 1898 | | |
1895 | 1899 | | |
1896 | 1900 | | |
| |||
1974 | 1978 | | |
1975 | 1979 | | |
1976 | 1980 | | |
1977 | | - | |
1978 | | - | |
| 1981 | + | |
1979 | 1982 | | |
1980 | 1983 | | |
1981 | 1984 | | |
| |||
2007 | 2010 | | |
2008 | 2011 | | |
2009 | 2012 | | |
2010 | | - | |
2011 | | - | |
2012 | | - | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
2013 | 2016 | | |
2014 | 2017 | | |
2015 | 2018 | | |
| |||
2969 | 2972 | | |
2970 | 2973 | | |
2971 | 2974 | | |
2972 | | - | |
| 2975 | + | |
| 2976 | + | |
2973 | 2977 | | |
2974 | 2978 | | |
2975 | 2979 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1379 | 1379 | | |
1380 | 1380 | | |
1381 | 1381 | | |
| 1382 | + | |
| 1383 | + | |
1382 | 1384 | | |
1383 | 1385 | | |
1384 | 1386 | | |
1385 | 1387 | | |
1386 | | - | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
1387 | 1397 | | |
1388 | 1398 | | |
1389 | 1399 | | |
| |||
0 commit comments