added gdc for staged file's diff