• S
    git-gui: When possible show the type of an untracked file. · d3596fd9
    Shawn O. Pearce 提交于
    Users may want to know what a file is before they add it to the
    repository, especially if its a binary file.  So when possible
    invoke 'file' on the path and try to get its output.  Since
    this is strictly advice to the user we won't bother to report
    any failures from our attempt to run `file`.
    
    Since some file commands also output the path name they were
    given we look for that case and strip it off the front of the
    returned output before placing it into the diff viewer.
    Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
    d3596fd9
git-gui.sh 103.2 KB