Skip to content

Commit

Permalink
Mention new function for some deprecations.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnadlinger committed Jun 16, 2014
1 parent e2f5380 commit 5ff785e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/git/object_.d
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ GitObject lookupObject(GitRepo repo, in char[] hexString, GitType type = GitType
}
}

deprecated alias lookup = lookupObject;
deprecated alias lookupByPrefix = lookupObjectPrefix;
deprecated("Please use lookupObject instead.") alias lookup = lookupObject;
deprecated("Please use lookupObjectPrefix instead.") alias lookupByPrefix = lookupObjectPrefix;

///
const(char)[] toString(GitType type)
Expand Down
2 changes: 1 addition & 1 deletion src/git/repository.d
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ struct GitRepo
If $(D path) does not exist or if the .git directory is not
found in $(D path), a $(D GitException) is thrown.
*/
deprecated this(in char[] path)
deprecated("Please use openRepository instead.") this(in char[] path)
{
git_repository* repo;
require(git_repository_open(&repo, path.gitStr) == 0);
Expand Down

0 comments on commit 5ff785e

Please sign in to comment.