Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] What does WorkDirCheckout.hasParentBlob() mean?

Christian Halstrick <christian.halstrick@xxxxxxxxx> wrote:
> What does it mean if hasParentBlob(Tree t, String name) return true?
> Why do we check for that in WorkDirCheckout.processEntry(..)?
> >From the coding I understand this as "for a certain entry in the tree
> lookup all his (grand-)parents and search for an entry which is a blob
> (and not a tree). How could a parent of tree-entry be something
> different then a tree?

I think its looking for a directory/file conflict.  If this path
has a parent that is a blob, then this path cannot exist (or should
not exist) because you cannot store a file within a file.


Back to the top