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 :: Ref -> String
|
||||||
describe = fromRef . base
|
describe = fromRef . base
|
||||||
|
|
||||||
{- Often git refs are fully qualified (eg: refs/heads/master).
|
{- Often git refs are fully qualified
|
||||||
- Converts such a fully qualified ref into a base ref (eg: master). -}
|
- (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 -> Ref
|
||||||
base = Ref . remove "refs/heads/" . remove "refs/remotes/" . fromRef
|
base = Ref . remove "refs/heads/" . remove "refs/remotes/" . fromRef
|
||||||
where
|
where
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue