X-Git-Url: http://git.pk910.de/?p=phpgitweb.git;a=blobdiff_plain;f=htdocs%2Fpages%2Fshortlog.class.php;fp=htdocs%2Fpages%2Fshortlog.class.php;h=0bd823f15b837c66b0eccce332c61beee344ed75;hp=38c8db5e1139a1ff365f3e3fb6f11fa761a19dad;hb=27626297549b51277777302328ce6e793b6e5e17;hpb=394a07ff3e283f94c7ead44e8bd02d44c223314b diff --git a/htdocs/pages/shortlog.class.php b/htdocs/pages/shortlog.class.php index 38c8db5..0bd823f 100644 --- a/htdocs/pages/shortlog.class.php +++ b/htdocs/pages/shortlog.class.php @@ -45,6 +45,10 @@ class shortlog { $this->graph_data = new graph_data_generator(); if($head == null) { //add all refs to the graph + $rhash = GitCommand::get_hash($project['path'], "HEAD"); + if($rhash) + $this->graph_data->add_branch($rhash, null); + foreach($this->project['refs'] as $ref => $rhash) { if(preg_match('#^refs/heads/#i', $ref) && preg_match('/^[a-f0-9]*$/i', $rhash)) { $this->graph_data->add_branch($rhash, $ref);