Skip to content

Commit ad6fa24

Browse files
committed
Set Git attributes for BAM and CRAM files in the repository
1 parent 5ff6cf0 commit ad6fa24

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# Ensure BAM and CRAM files are left as binary. To display changes in them
2+
# by converting to SAM, add to your configuration (perhaps with --global):
3+
#
4+
# git config diff.bam.textconv "samtools view -h"
5+
# git config diff.cram.textconv "samtools view -h"
6+
*.bam -text diff=bam
7+
*.cram -text diff=cram
8+
19
# Omit these files from release tarballs.
210
.git* export-ignore
311
/.travis.yml export-ignore

0 commit comments

Comments
 (0)