1 |
On 3/11/20 9:37 AM, Alec Warner wrote: |
2 |
> On Wed, Mar 11, 2020 at 12:16 AM Zac Medico <zmedico@g.o |
3 |
> <mailto:zmedico@g.o>> wrote: |
4 |
> |
5 |
> For files returned by git diff-index, call git update-index in order |
6 |
> to ensure that the index reflects the state on disk. This will prevent |
7 |
> incorrect assumptions in cases where the index is missing or stale for |
8 |
> some reason. Since repoman uses this information to decide when to |
9 |
> update copyright header dates, this can prevent spurious copyright |
10 |
> header updates. |
11 |
> |
12 |
> Signed-off-by: Zac Medico <zmedico@g.o |
13 |
> <mailto:zmedico@g.o>> |
14 |
> Bug: https://bugs.gentoo.org/712106 |
15 |
> --- |
16 |
> repoman/lib/repoman/modules/vcs/git/changes.py | 15 ++++++++++++--- |
17 |
> 1 file changed, 12 insertions(+), 3 deletions(-) |
18 |
> |
19 |
> diff --git a/repoman/lib/repoman/modules/vcs/git/changes.py |
20 |
> b/repoman/lib/repoman/modules/vcs/git/changes.py |
21 |
> index 7e9ac1eb5..ebf770d53 100644 |
22 |
> --- a/repoman/lib/repoman/modules/vcs/git/changes.py |
23 |
> +++ b/repoman/lib/repoman/modules/vcs/git/changes.py |
24 |
> @@ -29,8 +29,14 @@ class Changes(ChangesBase): |
25 |
> ''' |
26 |
> super(Changes, self).__init__(options, repo_settings) |
27 |
> |
28 |
> - def _scan(self): |
29 |
> - '''VCS type scan function, looks for all detectable |
30 |
> changes''' |
31 |
> + def _scan(self, _reindex=True): |
32 |
> |
33 |
> |
34 |
> Why the underscore prefix? |
35 |
> |
36 |
> -A |
37 |
|
38 |
I can't think of a reason to use this parameter aside from this |
39 |
recursive call, and the underscore hints at this. |
40 |
-- |
41 |
Thanks, |
42 |
Zac |