1. 30 Apr, 2014 3 commits
    • tests: Add "describe" test repository · 4cc71bb7
      Built with the following script:
      
      	#!/bin/sh
      
      	test_tick () {
      		sleep 10
      	}
      
      	test_tick &&
      	echo one >file && git add file && git commit -m initial &&
      	one=$(git rev-parse HEAD) &&
      
      	git describe --always HEAD &&
      
      	test_tick &&
      	echo two >file && git add file && git commit -m second &&
      	two=$(git rev-parse HEAD) &&
      
      	test_tick &&
      	echo three >file && git add file && git commit -m third &&
      
      	test_tick &&
      	echo A >file && git add file && git commit -m A &&
      	test_tick &&
      	git tag -a -m A A &&
      
      	test_tick &&
      	echo c >file && git add file && git commit -m c &&
      	test_tick &&
      	git tag c &&
      
      	git reset --hard $two &&
      	test_tick &&
      	echo B >side && git add side && git commit -m B &&
      	test_tick &&
      	git tag -a -m B B &&
      
      	test_tick &&
      	git merge -m Merged c &&
      	merged=$(git rev-parse HEAD) &&
      
      	git reset --hard $two &&
      	test_tick &&
      	echo D >another && git add another && git commit -m D &&
      	test_tick &&
      	git tag -a -m D D &&
      	test_tick &&
      	git tag -a -m R R &&
      
      	test_tick &&
      	echo DD >another && git commit -a -m another &&
      
      	test_tick &&
      	git tag e &&
      
      	test_tick &&
      	echo DDD >another && git commit -a -m "yet another" &&
      
      	test_tick &&
      	git merge -m Merged $merged &&
      
      	test_tick &&
      	echo X >file && echo X >side && git add file side &&
      	git commit -m x
      nulltoken committed
  2. 29 Apr, 2014 2 commits
  3. 28 Apr, 2014 2 commits
  4. 27 Apr, 2014 1 commit
  5. 26 Apr, 2014 3 commits
  6. 25 Apr, 2014 6 commits
  7. 24 Apr, 2014 7 commits
  8. 23 Apr, 2014 9 commits
  9. 22 Apr, 2014 7 commits
    • Make stash and checkout ignore contained repos · 24d17de2
      To emulate git, stash should not remove untracked git repositories
      inside the parent repo, and checkout's REMOVE_UNTRACKED should
      also skip over these items.
      
      `git stash` actually prints a warning message for these items.
      That should be possible with a checkout notify callback if you
      wanted to, although it would require a bit of extra logic as things
      are at the moment.
      Russell Belfer committed
    • Use git_diff_get_stats in example/diff + refactor · 8d09efa2
      This takes the `--stat` and related example options in the example
      diff.c program and converts them to use the `git_diff_get_stats`
      API which nicely formats stats for you.
      
      I went to add bar-graph scaling to the stats formatter and noticed
      that the `git_diff_stats` structure was holding on to all of the
      `git_patch` objects.  Unfortunately, each of these objects keeps
      the full text of the diff in memory, so this is very expensive.  I
      ended up modifying `git_diff_stats` to keep just the data that it
      needs to keep and allowed it to release the patches.  Then, I added
      width scaling to the output on top of that.
      
      In making the diff example program match 'git diff' output, I ended
      up removing an newline from the sumamry output which I then had to
      compensate for in the email formatting to match the expectations.
      
      Lastly, I went through and refactored the tests to use a couple of
      helper functions and reduce the overall amount of code there.
      Russell Belfer committed
    • Some doc and examples/diff.c changes · 12e422a0
      I was playing with "git diff-index" and wanted to be able to
      emulate that behavior a little more closely with the diff example.
      
      Also, I wanted to play with running `git_diff_tree_to_workdir`
      directly even though core Git doesn't exactly have the equivalent,
      so I added a command line option for that and tweaked some other
      things in the example code.
      
      This changes a minor output thing in that the "raw" print helper
      function will no longer add ellipses (...) if the OID is not
      actually abbreviated.
      Russell Belfer committed
    • Merge pull request #2282 from libgit2/cmn/remote-easier-bind · a32d684f
      A few niceties for binding authors
      Vicent Marti committed
    • transports: allow the creds callback to say it doesn't exist · bc0a6198
      Allow the credentials callback to return GIT_PASSTHROUGH to make the
      transports code behave as though none was set.
      
      This should make it easier for bindings to behave closer to the C code
      when there is no credentials callback set at their level.
      Carlos Martín Nieto committed