Fossil SCM
Clarify some comments in name.c
Commit
5113ab5981bf88cfe2e734a3557b04fb339a4fe2
Parent
0e924820bffe17d…
1 file changed
+8
-3
+8
-3
| --- src/name.c | ||
| +++ src/name.c | ||
| @@ -99,13 +99,13 @@ | ||
| 99 | 99 | } |
| 100 | 100 | return rc; |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | /* |
| 104 | -** This routine takes a name which might be a symbolic tag and | |
| 105 | -** attempts to produce a UUID. The UUID (if any) is returned in the | |
| 106 | -** blob pointed to by the second argument. | |
| 104 | +** This routine takes a name which might be a tag and attempts to | |
| 105 | +** produce a UUID. The UUID (if any) is returned in the blob pointed | |
| 106 | +** to by the second argument. | |
| 107 | 107 | ** |
| 108 | 108 | ** Return as follows: |
| 109 | 109 | ** 0 Name is not a tag |
| 110 | 110 | ** 1 A single UUID was found |
| 111 | 111 | ** 2 More than one UUID was found, so this is presumably a |
| @@ -134,10 +134,15 @@ | ||
| 134 | 134 | db_column_blob(&q, 0, pUuid); |
| 135 | 135 | } |
| 136 | 136 | db_finalize(&q); |
| 137 | 137 | return count; |
| 138 | 138 | } |
| 139 | + | |
| 140 | +/* | |
| 141 | +** This routine takes a name which might be a symbolic tag and | |
| 142 | +** attempts to produce a UUID. See tag_to_uuid. | |
| 143 | +*/ | |
| 139 | 144 | int sym_tag_to_uuid(const char *pName, Blob *pUuid){ |
| 140 | 145 | return tag_to_uuid(pName,pUuid,"sym-"); |
| 141 | 146 | } |
| 142 | 147 | |
| 143 | 148 | /* |
| 144 | 149 |
| --- src/name.c | |
| +++ src/name.c | |
| @@ -99,13 +99,13 @@ | |
| 99 | } |
| 100 | return rc; |
| 101 | } |
| 102 | |
| 103 | /* |
| 104 | ** This routine takes a name which might be a symbolic tag and |
| 105 | ** attempts to produce a UUID. The UUID (if any) is returned in the |
| 106 | ** blob pointed to by the second argument. |
| 107 | ** |
| 108 | ** Return as follows: |
| 109 | ** 0 Name is not a tag |
| 110 | ** 1 A single UUID was found |
| 111 | ** 2 More than one UUID was found, so this is presumably a |
| @@ -134,10 +134,15 @@ | |
| 134 | db_column_blob(&q, 0, pUuid); |
| 135 | } |
| 136 | db_finalize(&q); |
| 137 | return count; |
| 138 | } |
| 139 | int sym_tag_to_uuid(const char *pName, Blob *pUuid){ |
| 140 | return tag_to_uuid(pName,pUuid,"sym-"); |
| 141 | } |
| 142 | |
| 143 | /* |
| 144 |
| --- src/name.c | |
| +++ src/name.c | |
| @@ -99,13 +99,13 @@ | |
| 99 | } |
| 100 | return rc; |
| 101 | } |
| 102 | |
| 103 | /* |
| 104 | ** This routine takes a name which might be a tag and attempts to |
| 105 | ** produce a UUID. The UUID (if any) is returned in the blob pointed |
| 106 | ** to by the second argument. |
| 107 | ** |
| 108 | ** Return as follows: |
| 109 | ** 0 Name is not a tag |
| 110 | ** 1 A single UUID was found |
| 111 | ** 2 More than one UUID was found, so this is presumably a |
| @@ -134,10 +134,15 @@ | |
| 134 | db_column_blob(&q, 0, pUuid); |
| 135 | } |
| 136 | db_finalize(&q); |
| 137 | return count; |
| 138 | } |
| 139 | |
| 140 | /* |
| 141 | ** This routine takes a name which might be a symbolic tag and |
| 142 | ** attempts to produce a UUID. See tag_to_uuid. |
| 143 | */ |
| 144 | int sym_tag_to_uuid(const char *pName, Blob *pUuid){ |
| 145 | return tag_to_uuid(pName,pUuid,"sym-"); |
| 146 | } |
| 147 | |
| 148 | /* |
| 149 |