text: public virtual FileMode GetIndexFileMode(DirCacheIterator indexIter){FileMode wtMode = EntryFileMode;if (indexIter == null){return wtMode;}if (GetOptions().IsFileMode()){return wtMode;}FileMode iMode = indexIter.EntryFileMode;if (FileMode.REGULAR_FILE == wtMode && FileMode.EXECUTABLE_FILE == iMode){return iMode;}if (FileMode.EXECUTABLE_FILE == wtMode && FileMode.REGULAR_FILE == iMode){return iMode;}return wtMode;}