Skip to content
This repository has been 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

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.

None yet

2 participants