/[CvsGraph]/cvsgraph/cvsgraph.c
ViewVC logotype

Diff of /cvsgraph/cvsgraph.c

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

revision 1.46, Sun Aug 29 12:07:05 2004 UTC revision 1.47, Sun Aug 29 12:20:03 2004 UTC
# Line 2  Line 2 
2   * CvsGraph graphical representation generator of brances and revisions   * CvsGraph graphical representation generator of brances and revisions
3   * of a file in cvs/rcs.   * of a file in cvs/rcs.
4   *   *
5   * Copyright (C) 2001,2002,2003  B. Stultiens   * Copyright (C) 2001,2002,2003,2004  B. Stultiens
6   *   *
7   * This program is free software; you can redistribute it and/or modify   * This program is free software; you can redistribute it and/or modify
8   * it under the terms of the GNU General Public License as published by   * it under the terms of the GNU General Public License as published by
# Line 492  Line 492 
492          return r;          return r;
493  }  }
494    
495    static int sort_branch_height(const void *b1, const void *b2)
496    {
497            return (*(branch_t **)b1)->nrevs - (*(branch_t **)b2)->nrevs;
498    }
499    
500  static void build_branch(branch_t ***bl, int *nbl, delta_t **sdl, int nsdl, dtext_t **sdt, int nsdt, delta_t *head)  static void build_branch(branch_t ***bl, int *nbl, delta_t **sdl, int nsdl, dtext_t **sdt, int nsdt, delta_t *head)
501  {  {
502          branch_t *b;          branch_t *b;
# Line 536  Line 541 
541                                  currev->branches[currev->nbranches] = (*bl)[btag];                                  currev->branches[currev->nbranches] = (*bl)[btag];
542                                  currev->nbranches++;                                  currev->nbranches++;
543                          }                          }
544                            if(conf.branch_resort)
545                                    qsort(currev->branches, currev->nbranches, sizeof(currev->branches[0]), sort_branch_height);
546                  }                  }
547    
548                  /* Walk through the next list */                  /* Walk through the next list */
# Line 3506  Line 3513 
3513          "  -[0-9] <txt> Use <txt> for expansion\n"          "  -[0-9] <txt> Use <txt> for expansion\n"
3514          ;          ;
3515    
3516  #define VERSION_STR     "1.5.0"  #define VERSION_STR     "1.5.1"
3517  #define NOTICE_STR      "Copyright (c) 2001,2002,2003,2004 B.Stultiens"  #define NOTICE_STR      "Copyright (c) 2001,2002,2003,2004 B.Stultiens"
3518    
3519  static void append_slash(char **path)  static void append_slash(char **path)

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0