improve comment
This commit is contained in:
parent
8dae86eac2
commit
99982e2830
1 changed files with 4 additions and 2 deletions
|
@ -28,8 +28,10 @@ setHeadRef ref r = writeFile (headFile r) ("ref: " ++ fromRef ref)
|
|||
describe :: Ref -> String
|
||||
describe = fromRef . base
|
||||
|
||||
{- Often git refs are fully qualified (eg: refs/heads/master).
|
||||
- Converts such a fully qualified ref into a base ref (eg: master). -}
|
||||
{- Often git refs are fully qualified
|
||||
- (eg refs/heads/master or refs/remotes/origin/master).
|
||||
- Converts such a fully qualified ref into a base ref
|
||||
- (eg: master or origin/master). -}
|
||||
base :: Ref -> Ref
|
||||
base = Ref . remove "refs/heads/" . remove "refs/remotes/" . fromRef
|
||||
where
|
||||
|
|
Loading…
Add table
Reference in a new issue