[PATCH v2 1/2] status: refactor output format to represent default

2012-10-17 Thread Nguyễn Thái Ngọc Duy
From: Jeff King p...@peff.net When deciding which output format to use, we default an internal enum to STATUS_FORMAT_LONG and modify it if --porcelain or --short is given. If this enum is set to LONG, then we know the user has not specified any format, and we can kick in default behaviors. This

Re: [PATCH v2 1/2] status: refactor output format to represent default

2012-10-17 Thread Jeff King
On Thu, Oct 18, 2012 at 08:57:59AM +0700, Nguyen Thai Ngoc Duy wrote: From: Jeff King p...@peff.net When deciding which output format to use, we default an internal enum to STATUS_FORMAT_LONG and modify it if --porcelain or --short is given. If this enum is set to LONG, then we know the