有没有办法在另一个文件中包含一个.hgignore
文件?
.hgignore
)中有一个共同的hg-common
文件,它忽略了desktop.ini
和...之类的文件。 .DS_Store
,我希望将该文件包含在我创建的每个项目中。在.hgignore
我的project1
回购邮件的syntax: include hg-common/.hgignore
中,我想做类似的事情:
syntax: include
import Settlement from './Settlement';
export default class SendOrder extends React.Component {
state = {
text: '',
storedValue: '',
}
onSave = async () => {
const { text } = this.state
try {
await AsyncStorage.setItem(key, text);
Alert.alert('Saved', 'Successful');
} catch (error) {
Alert.alert('Error', 'There was an error.')
}
}
onChange = (text) => {
this.setState({ text });
}
render() {
return (
<View>
<View>
<Text>- Noter -</Text>
</View>
<View>
<TextInput
onChangeText = {this.onChange}
value = { this.state.text }>
</TextInput>
</View>
<TouchableOpacity onPress = { this.onSave }>
<Text style = { styles.addButtonText }> + </Text>
</TouchableOpacity>
</View>
);
}
}
是我想要包含指定文件的假想语法。
答案 0 :(得分:2)
我找到了正确的语法:
include:hg-common/.hgignore