diff --git a/src/git.cc b/src/git.cc index 822a65c..d2ae2c0 100644 --- a/src/git.cc +++ b/src/git.cc @@ -17,7 +17,7 @@ std::string Git::Error::message() noexcept { return last_error->message; } -Git::Repository::Diff::Diff(const boost::filesystem::path &path, git_repository *repository) : repository(repository) { +Git::Repository::Diff::Diff(const boost::filesystem::path &path, git_repository *repository) { blob = std::shared_ptr(nullptr, [](git_blob *blob) { if(blob) git_blob_free(blob); diff --git a/src/git.h b/src/git.h index ea80b05..3945c7b 100644 --- a/src/git.h +++ b/src/git.h @@ -43,7 +43,6 @@ public: private: friend class Repository; Diff(const boost::filesystem::path &path, git_repository *repository); - git_repository *repository = nullptr; std::shared_ptr blob = nullptr; git_diff_options options; static int hunk_cb(const git_diff_delta *delta, const git_diff_hunk *hunk, void *payload) noexcept;