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

wip: support for fileMode: false #970

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

wip: support for fileMode: false #970

wants to merge 1 commit into from

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 <git@howl.moe>
@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

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

Successfully merging this pull request may close these issues.

2 participants