Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Oct 29, 2012
  1. @mhagger @peff

    Introduce new function real_path_if_valid()

    mhagger authored peff committed
    The function is like real_path(), except that it returns NULL on error
    instead of dying.
    
    Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
    Signed-off-by: Jeff King <peff@peff.net>
  2. @mhagger @peff

    real_path_internal(): add comment explaining use of cwd

    mhagger authored peff committed
    Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
    Signed-off-by: Jeff King <peff@peff.net>
  3. @mhagger @peff

    Introduce new static function real_path_internal()

    mhagger authored peff committed
    It accepts a new parameter, die_on_error.  If die_on_error is false,
    it simply cleans up after itself and returns NULL rather than dying.
    
    Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
    Signed-off-by: Jeff King <peff@peff.net>
Commits on Sep 6, 2012
  1. @mhagger @gitster

    real_path(): properly handle nonexistent top-level paths

    mhagger authored gitster committed
    The change has two points:
    
    1. Do not strip off a leading slash, because that erroneously turns an
       absolute path into a relative path.
    
    2. Do not remove slashes from groups of multiple slashes; instead let
       chdir() handle them.  It could be, for example, that it wants to
       leave leading double-slashes alone.
    
    Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  2. @mhagger @gitster

    real_path(): reject the empty string

    mhagger authored gitster committed
    Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  3. @mhagger @gitster

    absolute_path(): reject the empty string

    mhagger authored gitster committed
    Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Something went wrong with that request. Please try again.