Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Conversation

thehowl
Copy link
Contributor

@thehowl thehowl commented Sep 27, 2018

incomplete, awaiting feedback on how to proceed

#378 (comment)

Signed-off-by: Morgan Bazalgette <[email protected]>
@mcuadros
Copy link
Contributor

mcuadros commented Oct 9, 2018

Great contribution, can you provide some tests?

@@ -479,12 +484,26 @@ func (w *Worktree) doUpdateFileToIndex(e *index.Entry, filename string, h plumbi
return err
}

isNew := e.Hash == plumbing.ZeroHash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can simply do e.Hash.IsZero()

@mcuadros
Copy link
Contributor

mcuadros commented Apr 7, 2019

friendly ping

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants