Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jun 13, 2007
  1. @peff @gitster

    builtin-add: simplify (and increase accuracy of) exclude handling

    peff authored gitster committed
    Previously, the code would always set up the excludes, and then manually
    pick through the pathspec we were given, assuming that non-added but
    existing paths were just ignored. This was mostly correct, but would
    erroneously mark a totally empty directory as 'ignored'.
    Instead, we now use the collect_ignored option of dir_struct, which
    unambiguously tells us whether a path was ignored. This simplifies the
    code, and means empty directories are now just not mentioned at all.
    Furthermore, we now conditionally ask dir_struct to respect excludes,
    depending on whether the '-f' flag has been set. This means we don't have
    to pick through the result, checking for an 'ignored' flag; ignored entries
    were either added or not in the first place.
    We can safely get rid of the special 'ignored' flags to dir_entry, which
    were not used anywhere else.
    Signed-off-by: Jeff King <>
    Signed-off-by: Jonas Fonseca <>
    Signed-off-by: Junio C Hamano <>
  2. @peff @gitster

    dir_struct: add collect_ignored option

    peff authored gitster committed
    When set, this option will cause read_directory to keep
    track of which entries were ignored. While this shouldn't
    effect functionality in most cases, it can make warning
    messages to the user much more useful.
    Signed-off-by: Jeff King <>
    Signed-off-by: Junio C Hamano <>
Commits on Sep 8, 2006
  1. @peff convert run_status to a C builtin

    peff authored Junio C Hamano committed
    This creates a new git-runstatus which should do roughly the same thing
    as the run_status function from Except for color support,
    the main focus has been to keep the output identical, so that it can be
    verified as correct and then used as a C platform for other improvements to
    the status printing code.
    Signed-off-by: Jeff King <>
    Signed-off-by: Junio C Hamano <>
Something went wrong with that request. Please try again.