Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteefbf2d

Browse files
committed
document more diff entry fields, mention that patch isnt displayed for binary diffs
1 parentec72a85 commiteefbf2d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

‎content/v3/repos/commits.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ will be returned.
3131
<%= headers 200 %>
3232
<%= json(:full_commit) %>
3333

34+
Note: Diffs with binary data will have no 'patch' property.
35+
3436
##List commit comments for a repository
3537

3638
Commit Comments leverage[these](#custom-mime-types) custom mime types. You can

‎lib/resources.rb‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,11 @@ def json(key)
243243
"filename"=>"file1.txt",
244244
"additions"=>10,
245245
"deletions"=>2,
246-
"total"=>12,
246+
"changes"=>12,
247+
"status"=>"modified",
248+
"raw_url"=>"https://github.com/octocat/Hello-World/raw/7ca483543807a51b6079e54ac4cc392bc29ae284/file1.txt",
249+
"blob_url"=>"https://github.com/octocat/Hello-World/blob/7ca483543807a51b6079e54ac4cc392bc29ae284/file1.txt",
250+
"patch"=>"@@ -29,7 +29,7 @@\n....."
247251
}]
248252
})
249253

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp