Commit Graph

9 Commits

Author SHA1 Message Date
Patrick Steinhardt
c843736d63 describe example: enable building by default. 2015-04-07 14:55:05 +02:00
Patrick Steinhardt
0a2f99fd13 examples: add remote example. 2015-03-19 08:45:34 +01:00
Jeff King
56ec2256f2 examples: add a basic for-each-ref example
This is quite close to running "git for-each-ref" except:

  1. It does not take any formatting or selection options at
     all.

  2. The output is not sorted.

I wrote it to look at debugging some issues with ref
iteration, but there's no reason it can't live on as an
example command.
2014-05-08 15:49:38 -04:00
Jiri Pospisil
a53b858417 Add tag example 2014-03-05 20:31:15 +01:00
Ben Straub
0a23d2058d Ignore more built examples 2013-10-09 16:18:32 -07:00
Ben Straub
4c7fdb4d3d Add blame example 2013-09-16 16:27:21 -07:00
Greg Price
8f7f5e5543 examples: rev-list
This demonstrates parts of the interface for specifying revisions that
Git users are familiar with from 'git rev-list', 'git log', and other
Git commands.  A similar query interface is used in out-of-core
command-line programs that browse a Git repo (like 'tig'), and may be
useful for an 'advanced search' interface in GUI or web applications.

In this version, we parse all the query modifiers we can support with
the existing logic in revwalk: basic include/exclude commits, and the
ordering flags.  More logic will be required to support '--grep',
'--author', the pickaxe '-S', etc.

Signed-off-by: Greg Price <price@mit.edu>
2013-04-06 20:51:16 -07:00
Ben Straub
cc3e9b5af4 Make building samples more friendly 2012-12-16 10:50:10 -08:00
Scott Chacon
96da90ae1f update examples content to be compilable and up to date 2011-06-15 09:40:06 -07:00