Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Mar 12, 2015
  1. @pclouds @gitster

    untracked cache: guard and disable on system changes

    pclouds authored gitster committed
    If the user enables untracked cache, then
    
     - move worktree to an unsupported filesystem
     - or simply upgrade OS
     - or move the whole (portable) disk from one machine to another
     - or access a shared fs from another machine
    
    there's no guarantee that untracked cache can still function properly.
    Record the worktree location and OS footprint in the cache. If it
    changes, err on the safe side and disable the cache. The user can
    'update-index --untracked-cache' again to make sure all conditions are
    met.
    
    This adds a new requirement that setup_git_directory* must be called
    before read_cache() because we need worktree location by then, or the
    cache is dropped.
    
    This change does not cover all bases, you can fool it if you try
    hard. The point is to stop accidents.
    
    Helped-by: Eric Sunshine <sunshine@sunshineco.com>
    Helped-by: brian m. carlson <sandals@crustytoothpaste.net>
    Helped-by: Torsten Bögershausen <tboegi@web.de>
    Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Aug 18, 2014
  1. @pclouds @gitster

    wrapper.c: introduce gentle xmallocz that does not die()

    pclouds authored gitster committed
    Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Mar 31, 2014
  1. @pclouds @gitster

    environment.c: fix constness for odb_pack_keep()

    pclouds authored gitster committed
    Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Feb 20, 2014
  1. @pclouds @gitster

    stop using fnmatch (either native or compat)

    pclouds authored gitster committed
    Since v1.8.4 (about six months ago) wildmatch is used as default
    replacement for fnmatch. We have seen only one fix since so wildmatch
    probably has done a good job as fnmatch replacement. This concludes
    the fnmatch->wildmatch transition by no longer relying on fnmatch.
    
    Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Jan 1, 2013
  1. @pclouds @gitster

    Makefile: add USE_WILDMATCH to use wildmatch as fnmatch

    pclouds authored gitster committed
    This is similar to NO_FNMATCH but it uses wildmatch instead of
    compat/fnmatch. This is an intermediate step to let wildmatch be used
    as fnmatch replacement for wider audience before it replaces fnmatch
    completely and compat/fnmatch is removed.
    
    fnmatch in test-wildmatch is not impacted by this and is the only
    place that NO_FNMATCH or NO_FNMATCH_CASEFOLD remain active when
    USE_WILDMATCH is set.
    
    Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Oct 15, 2012
  1. @pclouds @gitster

    ctype: support iscntrl, ispunct, isxdigit and isprint

    pclouds authored gitster committed
    Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  2. @pclouds @gitster

    ctype: make sane_ctype[] const array

    pclouds authored gitster committed
    Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Jan 12, 2010
  1. @pclouds @gitster

    Add missing #include to support TIOCGWINSZ on Solaris

    pclouds authored gitster committed
    On Linux TIOCGWINSZ is defined somehwere in ioctl.h, which is already
    included. On Solaris we also need to include termios.h. Without this
    term_columns() in help.c will think TIOCGWINSZ is not supported and
    always return 80 columns.
    
    Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Something went wrong with that request. Please try again.