-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.puml
119 lines (117 loc) · 3.55 KB
/
test.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
@startuml
class gitlet.Gitindex {
- String filename
- String sha1Hash
+ String getSha1Hash()
+ String getFilename()
+ int hashCode()
+ boolean equals(Object)
+ boolean verCompare(Gitindex)
}
class gitlet.Command {
~ {static} void init()
~ {static} void add(String)
~ {static} void commit(String)
~ {static} void rm(String)
~ {static} void log()
~ {static} void status()
~ {static} void reset(String)
~ {static} void branch(String)
~ {static} void checkoutPastFile(String,String)
~ {static} void checkoutHeadFile(String)
~ {static} void checkoutBranch(String)
~ {static} void mergeCheck(String)
~ {static} void merge(String)
~ {static} void mergeCommit(Objects,String,String)
~ {static} void printMergeConf(LinkedList<String>,Objects,Objects)
~ {static} void rebase(String)
}
class gitlet.Objects {
- String type
- String content
- String CwdName
- String msg
- String time
- LinkedList<String> parentHash
+ HashMap<String,Gitindex> indexFile
+ String getType()
+ String getCwdName()
+ String getContent()
+ void setContent(String)
+ void setParentHash(String)
+ String getParentHash()
+ String getSecondParent()
+ boolean isMergeCommit()
+ String getMergeHash()
+ String getTime()
+ String getMsg()
+ void makeCommit(String)
+ void makeMergeCommit(String,String)
+ void putEntryToDict(String,String)
+ void updateDictDiff(Objects,Objects)
+ void printDict()
+ LinkedList<String> rebaseUpdate(Objects,Objects)
}
class gitlet.Utils {
~ {static} int UID_LENGTH
- {static} FilenameFilter PLAIN_FILES
~ {static} String timeStamp()
~ {static} String hash(Serializable)
~ {static} String sha1(Object)
~ {static} String sha1(List<Object>)
~ {static} boolean restrictedDelete(File)
~ {static} boolean restrictedDelete(String)
~ {static} byte[] readContents(File)
~ {static} String readContentsAsString(File)
+ {static} void exitWithError(String)
~ {static} void writeContents(File,Object)
~ {static} T readObject(File,Class<T>)
~ {static} void writeObject(File,Serializable)
~ {static} List<String> plainFilenamesIn(File)
~ {static} List<String> plainFilenamesIn(String)
~ {static} File join(String,String)
~ {static} File join(File,String)
~ {static} byte[] serialize(Serializable)
~ {static} GitletException error(String,Object)
~ {static} void message(String,Object)
}
class gitlet.Gitfile {
~ {static} File OBJECTS
~ {static} File INDEX
~ {static} File INDEX_RM
~ {static} File LOCAL_HEAD
~ {static} File HEAD
~ {static} File BRANCH
~ {static} File CWD
~ {static} String ST_RM
~ {static} void setDirectory()
~ {static} String writeGitObject(Objects)
~ {static} void writeHead(String)
~ {static} String getHead()
~ {static} boolean writeStagedToIndex(String,String)
~ {static} boolean updateIndexRemoval(Objects)
~ {static} File getObjectsAsFile(String)
~ {static} Objects getObjectsfromHash(String)
~ {static} String getHashHead(String)
~ {static} String getHashBody(String)
~ {static} Objects getCurrentCommit()
~ {static} String getBranchHead(String)
~ {static} String currentBranch()
~ {static} void updateBranchHead(String,String)
~ {static} List<String> pastCommits(String)
~ {static} String splitPoint(String,List<String>)
~ {static} void updateRepoFile(File,String)
~ {static} void clearStage(Objects,Objects)
~ {static} LinkedList<String> untrackedFiles(Objects,Objects,Objects)
~ {static} LinkedList<String> modifiedFiles(Objects,Objects,Objects)
}
class gitlet.Main {
+ {static} void main(String[])
+ {static} void validateNumArgs(String,String[],int)
}
class gitlet.GitletException {
}
java.io.Serializable <|.. gitlet.Gitindex
java.io.Serializable <|.. gitlet.Objects
gitlet.RuntimeException <|-- gitlet.GitletException
@enduml