Skip to content

gitdiff should strip a/ b/ prefixes from --- +++ lines #317

@zackw

Description

@zackw

I am getting errors like

genhtml: WARNING: source file '/.../project/sourcefile.py'
  (in both baseline and current .info files)
  has same basename as 'diff' entry '/.../project/b/sourcefile.py' -
  but a different path.  Possible pathname mismatch?
genhtml: ERROR: possible path inconsistency in baseline/current/udiff data
	(use "genhtml --ignore-errors path ..." to bypass this error)

The error goes away if I run the diff file through sed 's@^\([-+]* \)[ab]/@\1@'. However, I generated the diff using gitdiff - shouldn't it handle this for me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions