/[drupal]/contributions/modules/gitbrowser/gb.inc
ViewVC logotype

Diff of /contributions/modules/gitbrowser/gb.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.28, Thu Sep 24 04:25:35 2009 UTC revision 1.29, Wed Nov 4 06:32:05 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: gb.inc,v 1.27 2009/08/24 03:36:46 gordon Exp $  // $Id: gb.inc,v 1.28 2009/09/24 04:25:35 gordon Exp $
3  /**  /**
4   * @file   * @file
5   * Provide all git integration   * Provide all git integration
# Line 369  function gb_get_heads($repos) { Line 369  function gb_get_heads($repos) {
369  }  }
370    
371  function gb_get_tags($repos) {  function gb_get_tags($repos) {
372    return array_reverse(gb_show_ref($repos, '--tags'));    $tags = gb_show_ref($repos, '--tags');
373      foreach ($tags as $key => $tag) {
374        $info = gb_get_tag_info($repos, $tag['hash']);
375        $tags[$key]['created'] = $info['tagger']['date'];
376      }
377    
378      uasort($tags, '_gb_sort_tags');
379      return $tags;
380    }
381    
382    function _gb_sort_tags($a, $b) {
383      return $a['created'] < $b['created'];
384  }  }
385    
386  /**  /**

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

  ViewVC Help
Powered by ViewVC 1.1.2