Skip to content
  • Jeff King's avatar
    ident: refactor NO_DATE flag in fmt_ident · 359b27ad
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    As a short-hand, we extract this flag into the local
    variable "name_addr_only". It's more accurate to simply
    negate this and refer to it as "want_date", which will be
    less confusing when we add more NO_* flags.
    
    While we're touching this part of the code, let's move the
    call to ident_default_date() only when we are actually going
    to use it, not when we have NO_DATE set, or when we get a
    date from the environment.
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    359b27ad