On Wednesday, August 17, 2016 at 4:57:04 PM UTC+2, Cook Schelling wrote:
>
> I know what .gitignore is. I don't want to ignore the whole tw file, I 
> just want ignore some changes that are not caused directly by my edition. I 
> think a git filter can resolve my question, so I want to know if there is 
> also some resolution.


No. gitignore can only filter on a file basis. ...

Since you are talking about a <div>  that is changed, I think you push the 
whole tiddlywiki.html file. .. So the only thing that can prevent this is, 
that you change your "save-filter" in TW itself. The tiddler is 
$:/core/save/all 
If you change it like the following code, it won't save eg: $:/StoryList, 
... but there are a lot of other temporary tiddlers, that may be created 
while working with TW. So may need them to the "exclude" list. 

*WARNING! -> !!! Make a backup first !!!  *If you mess up this tiddler you 
may end up with an *empty or corrupted *tiddlywiki!

\define saveTiddlerFilter()
[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] 
-[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] 
-[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] 
-[[$:/StoryList]] -[prefix[$:/temp/]] -[prefix[$:/state/]] $(publishFilter)$
\end
{{$:/core/templates/tiddlywiki5.html}}


I did add the following -[[$:/StoryList]] -[prefix[$:/temp/]] 
-[prefix[$:/state/]]  elements to the above filter. It will prevent the 
story list and all tiddlers prefixed "$:/temp/" and "$:/state/". .. If you 
don't want this, just remove them. ... Just to be sure: Did I make clear 
that *backups *are important? ;)

There is a $(publishFilter)$ variable, which should make things easier,  
but I don't know how to set it. @Jeremy can you help?

have fun!
mario
PS: A wise man said: Backups will prevent you from data loss! ;)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/18955b3f-6cce-4511-8e63-b147d0761f4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to