checking commit with same staged and unstaged file