Minor code style update
This commit is contained in:
parent
30990f35e0
commit
f7e0105ba1
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
#include "zstr.hpp"
|
#include "zstr.hpp"
|
||||||
|
|
||||||
int catFile(const int argc, const char **argv)
|
int catFile(const int argc, const char** argv)
|
||||||
{
|
{
|
||||||
if (argc < 4)
|
if (argc < 4)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
|
|
||||||
int clone(const int argc, const char **argv)
|
int clone(const int argc, const char** argv)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
#include "sha1.hpp"
|
#include "sha1.hpp"
|
||||||
#include "zstr.hpp"
|
#include "zstr.hpp"
|
||||||
|
|
||||||
int hashObject(const int argc, const char **argv)
|
int hashObject(const int argc, const char** argv)
|
||||||
{
|
{
|
||||||
std::filesystem::create_directory("./.git/objects");
|
std::filesystem::create_directory("./.git/objects");
|
||||||
if (argc < 4)
|
if (argc < 4)
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
#include "zstr.hpp"
|
#include "zstr.hpp"
|
||||||
|
|
||||||
int lsTree(const int argc, const char **argv)
|
int lsTree(const int argc, const char** argv)
|
||||||
{
|
{
|
||||||
bool nameOnly = false;
|
bool nameOnly = false;
|
||||||
if (argc == 4)
|
if (argc == 4)
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ std::string hashDir(const std::string& path)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int writeTree(const char **argv)
|
int writeTree(const char** argv)
|
||||||
{
|
{
|
||||||
if (!std::filesystem::exists("./.git/objects"))
|
if (!std::filesystem::exists("./.git/objects"))
|
||||||
std::filesystem::create_directory("./.git/objects");
|
std::filesystem::create_directory("./.git/objects");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue