Ignore unstaged files when setting metadata.