A PHP Error was encountered
Severity: Notice
Message: Undefined index: userid
Filename: views/question.php
Line Number: 191
Backtrace:
File: /var/www/html/cnasolution/application/views/question.php
Line: 191
Function: _error_handler
File: /var/www/html/cnasolution/application/controllers/Questions.php
Line: 419
Function: view
File: /var/www/html/cnasolution/index.php
Line: 315
Function: require_once
Excluding delete files from git diff-tree [duplicate]
I want to get a quick overview of the local changes in my repository, but I don't want a diff that shows deleted files, since every single line is a minus.
Basically, I want something like 'git diff HEAD
. In an ideal world, it would be preceded by the list of deleted and added files, but not show the diffs within them.'
I was most of the way through writing a utility that does this:
git diff HEAD `git status | grep modified | cut -d : -f 2`
when I wondered if there was some git-y way to do it instead. Is there a flag I'm missing? I'd love to preserve the color output, too.