Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 17, 2011
  1. Carlos Martín Nieto Junio C Hamano

    Name make_*_path functions more accurately

    carlosmn authored gitster committed
    Rename the make_*_path functions so it's clearer what they do, in
    particlar make clear what the differnce between make_absolute_path and
    make_nonrelative_path is by renaming them real_path and absolute_path
    respectively. make_relative_path has an understandable name and is
    renamed to relative_path to maintain the name convention.
    
    The function calls have been replaced 1-to-1 in their usage.
    
    Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Mar 16, 2011
  1. Carlos Martín Nieto Junio C Hamano

    make_absolute_path: return the input path if it points to our buffer

    carlosmn authored gitster committed
    Some codepaths call make_absolute_path with its own return value as
    input. In such a cases, return the path immediately.
    
    This fixes a valgrind-discovered error, whereby we tried to copy a
    string onto itself.
    
    Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Something went wrong with that request. Please try again.